Hi! I hope this is not a stupid question: can one PythonScript-Object A() call another PythonScript-Object B() without help from 'above'? Like (suppose, wer're in A): ... x=5 y=B() z=6 ... and in the dtml-document: <dtml-var expr="A()"> without having to give A a parameter b and write <dtml-var expr="A(B())"> and in A: ... x=5 y=b z=6 ... By the way: does anybody know a good tutorial besides http://www.python.org/doc/current/tut/tut.html thanks Horst _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
On Tue, 12 Jun 2001, Horst Wald wrote:
I hope this is not a stupid question: can one PythonScript-Object A() call another PythonScript-Object B() without help from 'above'?
Like (suppose, wer're in A):
... x=5 y=B() z=6 ...
y=context.B() should do it. hoping this helps. bye, Jerome Alet
If you are willing to bye a book instead of reading online I really enjoyed "Learning Python" by Lutz and Ascher from O'Reilly. It is starting to get a bit outdated because it is based on Python 1.5.2, but it is still a very good book. "Programming Python" by Mark Lutz, also on O'Reilly, is also a good book but more of a extended reffernce than a tutorial. It has a lot of good examples. Both books focus on Python and not on Zope. Martin Skøtt mskott@image.dk On Tue, 12 Jun 2001, Horst Wald wrote:
Hi!
I hope this is not a stupid question: can one PythonScript-Object A() call another PythonScript-Object B() without help from 'above'?
Like (suppose, wer're in A):
... x=5 y=B() z=6 ...
and in the dtml-document: <dtml-var expr="A()">
without having to give A a parameter b and write
<dtml-var expr="A(B())">
and in A:
... x=5 y=b z=6 ...
By the way: does anybody know a good tutorial besides
http://www.python.org/doc/current/tut/tut.html
thanks
Horst
_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________ 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 )
participants (3)
-
Horst Wald -
Jerome Alet -
Martin Skøtt