Jim wrote:
Do you mean only one line per expression? You can have multiple expressions per line *and* have multiple lines per expression::
<!--#var "x+1"--><!--#var "x+2"--><!--#var "x+ 2+ 3"-->
Sorry. You can only have one "expression" per var tag, meaning each "Python line" has to have the extra noise. --Paul
Paul Everitt wrote:
Jim wrote:
Do you mean only one line per expression? You can have multiple expressions per line *and* have multiple lines per expression::
<!--#var "x+1"--><!--#var "x+2"--><!--#var "x+ 2+ 3"-->
Sorry. You can only have one "expression" per var tag, meaning each "Python line" has to have the extra noise.
How about: <dtml-call "( manage_addDTMLDocument('foo', 'footitle', 'spam spam'), foobar(), x=1, whataver()+you()+want(), )"> Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
Jim Fulton wrote:
How about:
<dtml-call "( manage_addDTMLDocument('foo', 'footitle', 'spam spam'), foobar(), x=1,
Eek, this was a (freudian ;) typo, I meant: x+1,
whataver()+you()+want(), )">
-- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (2)
-
Jim Fulton -
Paul Everitt