Zclass methods and intermethod communication
Lets say I start a new product and add Zclass, by the book. Firstly on the methods view, I add a python script that counts from 1 to 10, called count. Secondly I add a dtml-method that calls <dtml-in "count()"> ..... </dtml-in> Oops count object not found ? ! How do methods talk to eachother ?? I must be missing something Chris
I think you should omit the brackets, just write <dtml-in count> or <dtml-in expr="count"> In the latter case you have the option to pass arguments between braces. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of chrisf Sent: 2002. január 29. 10:19 To: zope@zope.org Subject: [Zope] Zclass methods and intermethod communication Lets say I start a new product and add Zclass, by the book. Firstly on the methods view, I add a python script that counts from 1 to 10, called count. Secondly I add a dtml-method that calls <dtml-in "count()"> ..... </dtml-in> Oops count object not found ? ! How do methods talk to eachother ?? I must be missing something Chris _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
chrisf writes:
Lets say I start a new product and add Zclass, by the book. Firstly on the methods view, I add a python script that counts from 1 to 10, called count. Secondly I add a dtml-method that calls <dtml-in "count()"> ..... </dtml-in>
Oops count object not found ? ! How do methods talk to eachother ?? Do you call it on an instance or just try to call the DTML inside the class?
It should work on an instance... Dieter
participants (3)
-
chrisf -
Dieter Maurer -
e-Musty