problem with TAL statements across multiple lines in zope 2.7b3
i didn't have this problem with zope 2.6.2. I have a TAL statement as follows: tal:define = "url python:test(item_typeinfo.getId() in use_folder_contents, item.absolute_url()+'/folder_contents', item.absolute_url()+'/'+action);" this statement works if it is all on one line, but i get a syntax error if it is spread across multiple lines. is this a bug, or a change in TAL design? - Gerry
Gerry Kirk wrote at 2003-12-12 11:34 -0500:
i didn't have this problem with zope 2.6.2. I have a TAL statement as follows:
tal:define = "url python:test(item_typeinfo.getId() in use_folder_contents, item.absolute_url()+'/folder_contents', item.absolute_url()+'/'+action);"
this statement works if it is all on one line, but i get a syntax error if it is spread across multiple lines. is this a bug, or a change in TAL design?
Sounds like a bug... -- Dieter
Dieter Maurer wrote:
Gerry Kirk wrote at 2003-12-12 11:34 -0500:
i didn't have this problem with zope 2.6.2. I have a TAL statement as follows:
tal:define = "url python:test(item_typeinfo.getId() in use_folder_contents, item.absolute_url()+'/folder_contents', item.absolute_url()+'/'+action);"
this statement works if it is all on one line, but i get a syntax error if it is spread across multiple lines. is this a bug, or a change in TAL design?
Sounds like a bug...
It's now been filed as a bug. Gerry
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13/12/2003, at 3:34 AM, Gerry Kirk wrote:
i didn't have this problem with zope 2.6.2. I have a TAL statement as follows:
tal:define = "url python:test(item_typeinfo.getId() in use_folder_contents, item.absolute_url()+'/folder_contents', item.absolute_url()+'/'+action);"
this statement works if it is all on one line, but i get a syntax error if it is spread across multiple lines. is this a bug, or a change in TAL design?
Works for me. You aren't accidently splitting inside of a string are you? - -- Stuart Bishop <stuart@stuartbishop.net> http://www.stuartbishop.net/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQE/2puKAfqZj7rGN0oRAs9IAJ0SudIu20xmevZrSIHTPu2Aug9cDwCgiRFw 7x6vS4ticldQQ6H+Q4dL8xU= =hBXD -----END PGP SIGNATURE-----
participants (3)
-
Dieter Maurer -
Gerry Kirk -
Stuart Bishop