473,414 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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 2107
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jerrykhan | last post by:
Hello, who know the best Bug tracker system on a Python/Zope server ? BugZilla is Perl oriented (beuh !!) What about others ? Is A python oriented BugZilla like exists ? or need I write it ? ...
0
by: gnurpreet | last post by:
Software architect for Python/Zope/Plone development. Innovative (free/open source) software company in Rome, Italy, develops software for international political organizations. Proven and...
47
by: Will Stuyvesant | last post by:
Hello all, So Zope still lives, yay. Well, I like that they use Python. <rant> What amazed me is they write that they "added types to the variables and hope that it will be added to the...
21
by: godwin | last post by:
Hi all, I wanna thank Martin for helping out with my ignorance concerning execution of stored procedure with python. Now i have decided to write a web app that googles into my companies...
3
by: Dan Sikorsky | last post by:
How can I get the Querystring passed to the Referring Page from its referrer? I don't want the querystring coming to my current page. I want the querystring that came to the referring page, so...
6
by: John Grandy | last post by:
Does Server.URLDecode() need to be applied to Request.QueryString(<key name>) ?
5
by: =?Utf-8?B?Q2hyaXN0aWFuIE51bmNpYXRv?= | last post by:
Hi there: I'm using ASP.NET AJAX and liking it, but I've run into an issue I'm not sure how to address. I'm building a very simple image browser I'm sure you've all seen before -- one...
9
by: Norm | last post by:
Hi, without meaning to start a flame war between the various python web tools, I was wondering if anyone had a review of the status of Zope. For example, is it being used for new projects or...
4
by: =?Utf-8?B?RVcgTmV3Ymll?= | last post by:
My apologies in advance if there is a better forum for this question. Given the following snippet: <script type="text/c#" runat="server"> protected void Page_Load(Object Sender, EventArgs e)...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.