469,923 Members | 1,528 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,923 developers. It's quick & easy.

Have Zope a querystring parse routine ? (plus others)

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
1 1998
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.

Similar topics

5 posts views Thread by Jerrykhan | last post: by
reply views Thread by gnurpreet | last post: by
47 posts views Thread by Will Stuyvesant | last post: by
21 posts views Thread by godwin | last post: by
3 posts views Thread by Dan Sikorsky | last post: by
6 posts views Thread by John Grandy | last post: by
5 posts views Thread by =?Utf-8?B?Q2hyaXN0aWFuIE51bmNpYXRv?= | last post: by
9 posts views Thread by Norm | last post: by
4 posts views Thread by =?Utf-8?B?RVcgTmV3Ymll?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.