RE: [Zope] Whats the correct way...
-----Original Message----- From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] Sent: Monday, April 05, 1999 3:26 PM To: zope@zope.org Subject: [Zope] Whats the correct way...
Hi!
First off all I want to apologize if this question is way off topic here, but I'm stuck and don't know where else to turn my question.
Heres the situation:
I've made a form to let people search a database where they can choose wich datafields is going to be shown in the result (this is done by several checkboxes). Now if I pass this forms data onto a ZSQLmethod that handles the sql select query (variable names from the checkboxes are handled by '<!--#if names--> - scentences') I end up with an error if not all of the checkboxes are checked out.
What would be the correct way to have this handled? (Choose what data to be displayed)
You may find yourself in a situation where the attribute must exist in your DTML (and you want it to be a value or something else) but it may or may not be passed in by a calling form. To handle this, try: <!--#with _.namespace(data='')--> <!--#with REQUEST--> ... (Then use data) <!--#/with--> <!--#/with--> Here, if 'data' exists in REQUEST then it will override the default of ''. A rather sickening DTML construct like this is used in NotMail DTML in folder.dtml. Does this help? -Michel
Sture Lygren
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
On Mon, Apr 05, 1999 at 04:16:25PM -0400, Michel Pelletier wrote:
-----Original Message-----
deleted ...
You may find yourself in a situation where the attribute must exist in your DTML (and you want it to be a value or something else) but it may or may not be passed in by a calling form. To handle this, try:
<!--#with _.namespace(data='')--> <!--#with REQUEST--> ... (Then use data) <!--#/with--> <!--#/with-->
Here, if 'data' exists in REQUEST then it will override the default of ''.
A rather sickening DTML construct like this is used in NotMail DTML in folder.dtml.
Does this help?
Yes! Thanks a lot!
-Michel
Sture Lygren
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
Sture
participants (2)
-
Michel Pelletier -
raver@box.dust.za.net