I have a form with 50 or less items on it. The names of the form variables are taken from the result of a database query. In the examples I've seen, the target document already knows the names of the variables, which in some examples are properties of the parent folder. How would a document process a form when it doesn't know the names of the variables. Is there a list of the variable names that the target document knows, and can iterate over? ------- Regards, Graham Chiu gchiu<at>compkarori.co.nz
On Mon, Jun 07, 1999 at 11:01:28AM +1200, Graham Chiu wrote:
I have a form with 50 or less items on it. The names of the form variables are taken from the result of a database query.
In the examples I've seen, the target document already knows the names of the variables, which in some examples are properties of the parent folder.
How would a document process a form when it doesn't know the names of the variables. Is there a list of the variable names that the target document knows, and can iterate over?
Yep - form variables are returned in a dictionary in the REQUEST namespace, so what you're looking for is: <!--#in "REQUEST.form.items()"--> <!--#var sequence-key--> : <!--#var sequence-item--><BR> <!--#/in--> As Amos is fond of saying: The DTML User's Guide is your friend. Ross -- Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005
In article <19990606191220.A22354@wallace.ece.rice.edu>, Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu> writes
<!--#in "REQUEST.form.items()"--> <!--#var sequence-key--> : <!--#var sequence-item--><BR> <!--#/in-->
That worked a treat.
As Amos is fond of saying: The DTML User's Guide is your friend.
At least you didn't say - RTFM. Us newbies need lots of hand holding. Thanks, ------- Regards, Graham Chiu gchiu<at>compkarori.co.nz
Hi all, during the last 2 weeks I faced a massive performance problem with Zope because of a mistake I made setting relative links instead of absolute ones. I got things like: /change/change/all/update/search/change (different menu items clicked one after the other). Zope caches all this paths (is that correct?), so after a while Zope was very slow (many people working with the pages quite a lot, during a hot production phase, so I got many different paths. Clearing the cache or restarting Zope "fixed" the problem) After that I detected machines calling objects like /issue1/article1/issue2/article3/news/index_html?newsid=500 although this kind of links do not appear when just surfing around (looks like search engines doing bad things) So my question is: Is a link like http://www.zope.org/Documentation/Information/Community/Information/QA (which works) a feature or a bug of Zope? /Documentation /Information /Community are all top-level folders. Does it give sense to have /Information available in /Documentaion and even further down the hill as the above example shows (eg. Information in /Documentation/Information/Community) Kind of transversal aquisition.. The problem is, that nobody can forbid people to call such links, which is the problem I am facing right now (They just do it!). At least things like /Documentation/Documentation/Documentation/Documentation should not be allowed or did I miss some Zope Zen? any comments on that? Tom -- Tom Schwaller http://www.linux-magazin.de/
participants (3)
-
Graham Chiu -
Ross J. Reedstrom -
Tom Schwaller