Having had a bit of a lambasting over my use of dtml, I have started to learn zpt. However, I am curious about the following: How do you do the equivalent of name="comp.name:records" to submit multiple values to zsql or to a python script, especially when the initial list is generated dynamically. regards Garry
You can find this information in the Zope Book: http://www.plope.com/Books/2_7Edition/ScriptingZope.stx#1-6 Zenrique. 2005/10/18, Garry Saddington <garry@schoolteachers.co.uk>:
Having had a bit of a lambasting over my use of dtml, I have started to learn zpt. However, I am curious about the following: How do you do the equivalent of name="comp.name:records" to submit multiple values to zsql or to a python script, especially when the initial list is generated dynamically. regards Garry _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Hi Gary, Garry Saddington wrote:
Having had a bit of a lambasting over my use of dtml, I have started to learn zpt.
Congratulations, welcome to the zLight ;-)
However, I am curious about the following: How do you do the equivalent of name="comp.name:records" to submit multiple values to zsql or to a python script,
Well, that works exactly as it did before. That stuff is part of Zope's publisher machinery and has nothing to do with DTML or ZPT.
especially when the initial list is generated dynamically.
Not sure what you mean... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Chris Withers wrote:
Hi Gary,
Garry Saddington wrote:
Having had a bit of a lambasting over my use of dtml, I have started to learn zpt.
Congratulations, welcome to the zLight ;-)
However, I am curious about the following: How do you do the equivalent of name="comp.name:records" to submit multiple values to zsql or to a python script,
Well, that works exactly as it did before. That stuff is part of Zope's publisher machinery and has nothing to do with DTML or ZPT.
I now realise this after some reading, sorry for the rubbish question.
especially when the initial list is generated dynamically.
Not sure what you mean...
Again irrelevant now;-)
Chris
Would you also stop using dtml in zsql methods and do the processing of multiple records in python? regards garry
Garry Saddington wrote:
Would you also stop using dtml in zsql methods
If I could, I would, but ZSQL methods only support DTML :-( (At least for mail there's now MailTemplates (plug, plug ;-) and you don't have to use <dtml-sendmail> anymore ;-)
and do the processing of multiple records in python?
Er? Not sure what you mean... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
Garry Saddington -
José Henrique