Have Zope a querystring parse routine ? (plus others)

F

fowlertrainer

Hi !

Sorry, but (e-mail address removed) is not send mails to me... So I trying with
that list...


1.)
I want to use query-string, and post datas in combined dictionary.
I have a page that I must access with special query string, but it have
post datas.

The simple way is to redefine the post action, not the use of hidden
parameters:

action="/?pid=113"

But if I post that page, the pid is not in request, or request.form,
because it is in query string, and Zope is use that post datas, not the
query string.

So query string is unparsed, and if I want to get the params, I need to
parse items, and place in querydict dictionary.
My parse routine (what a pity) not handle the non-us, or other special
characters.

How to I do it simply ?

2.)
How to I avoid in Zope that request.form items are appear in request ?
It is a possible way to inject variables in request from out...

3.)
I there a way in Zope to get some often used routines simply ?
(Aliases ?)

Now I need to repeat in every pyscript:

rq=context.REQUEST
....

or
CreateCombo=context.routines.html.CreateCombo
combotext=CreateCombo(name,id,items,......)

I think that often used routines are placeable in request dictionary:
init.py
rq=context.REQUEST
oup={} # often used procs
proc=context.routines.html.CreateCombo
oup['CreateCB']=proc
rq.set('OUP',oup)

usage:
rq=context.REQUEST;oup=rq['OUP']
proc=oup['CreateCB']
proc(.....)

But have a Zope an alias to use the procs with simply aliases ?

Thanx for help:
FT
 
M

Max M

1.)
I want to use query-string, and post datas in combined dictionary.
I have a page that I must access with special query string, but it have
post datas.

You are probably better of by just making hidden fields in the form. You
can do exactly the same thing that way.

regards Max M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,792
Messages
2,569,639
Members
45,351
Latest member
RoxiePulli

Latest Threads

Top