RE: [Zope] Problem in constructing parameter for ZSQL Method
-----Original Message----- From: Stephan Richter [mailto:srichter@cbu.edu] Sent: 27 April 2000 16:35 To: Jason Wong Subject: Re: [Zope] Problem in constructing parameter for ZSQL Method
1. Try to url_encode the string. Does that help?
Not sure how this would help.
2. Can you send code snippets and the complete traceback?
I get some 'raw' Zope code in my page (stuff like <dtml-let .....> etc.) which suggests that the <dtml-let> statement didn't parse correctly so showed up in the html. No traceback.
3. Did you try to put the string into a variable first? (example: <DTML_CALL "REQUEST.set('foo', 'Hello World!')">
OK I tried: <DTML_CALL "REQUEST.set('foo', '\'<a href="details?Controller=\' & Model & \'">\' & Model & \'</a>\' as ModelLink')"> it parses fine. Then I try to use foo like in: <dtml-let recordset="qry_General(column=foo)"> I get the dreaded NameError error: Error Type: NameError Error Value: foo I solved the problem (eventually) by assigning the string to a property. thanks - Jason Wong
participants (1)
-
Jason Wong