By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,677 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,677 IT Pros & Developers. It's quick & easy.

Have Zope a querystring parse routine ? (plus others)

P: n/a
Hi !

Sorry, but zo**@zope.org 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

Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
fo***********@anonym.hu wrote:
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
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.