Re: [Zope] Problem with namespace (zope: addressed to exclusive sender for this address)

2005-06-18 Thread Ralph
On Thursday 16 June 2005 19:24, Dieter Maurer - [EMAIL PROTECTED] wrote:
 Ralph wrote at 2005-6-15 20:59 +0200:

 For details, please the the Calling DTML objects section in

Thank you for the answer. It was a simple programming failure, after 12h of 
working. 


___
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 )


Re: [Zope] Problem with namespace

2005-06-16 Thread Dieter Maurer
Ralph wrote at 2005-6-15 20:59 +0200:
 ...
Method A in report1 is rendering B in util. B is rendering a ZSQL-object 
in sql and in the tag dtml-in  is rendering C (python-method) in util, 
to render a table cell, but this isn't working, because E is unknown and I 
don't know why.

Example: 

DTML-Method A:
dtml-in sql.list_mytable prefix=pre
 dtml-var util.B(index=pre_index)

I assume B is a DTML object...

Then, you make one of the most frequent errors when dealing with
DTML objects. They have 2 essential positional arguments.
If you forget to pass them (usually as None, _), then
the called DTML object gets a new empty namespace...


For details, please the the Calling DTML objects section in

  http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html

-- 
Dieter
___
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 )