[Zope] Acquisition from a DTML method in a subdirectory

Chris Withers lists at simplistix.co.uk
Tue Mar 9 04:41:29 EST 2004


Jim Anderson wrote:

>> Try changing Adtml_doc to
>>
>>   <dtml-var expr="B.Bdtml_method(_.None,_)">

the 1st argument is the client object, passing _.None means "there is no client 
object", which is fine most of the time.

_ is the namespace, which is where all the names you use are looked up. The 
original way you were calling this passed no namespace, hence nothing could be 
found bar what could be acquired from B itself.

...and all this is why DTML sucks, and why you should learn ZPT as soon as you 
can... ;-)

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope mailing list