-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dimitris Koukis wrote:
Dear Zopistas,
i have an old zope application that present data from a database in such a manner <dtml-in "sql_methods.select_user()"> <dtml-var firstname><dtml-var lastname> </dtml-in>
I had to change the methods that returned data from the database, and it is no longer possible to return data directly from zsql methods. Instead i read them in a script, perform some processing and return a dictionary with exactly the same mappings. I thought the application would work without any change but it seems this is not the case (variables in dtml-in can not be found, kinda makes sense now, the dictionary values are not properties...).
Try the 'mapping' parameter for 'dtml-in':: <dtml-in name="your_python_script" mapping> <dmtl-var name="firstname"><dtml-var name="lastname"> </dtml-in> Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF42Y8+gerLs4ltQ4RAiw3AKDLy3Sl4txFSc44BPQD/4DLKl1FTQCfWe7u EW84MPaI7lMzV5rOajsPtrI= =4fDO -----END PGP SIGNATURE-----