[Zope] Confusing aq - I don't get it, anyone know why?

Brad Clements bkc@murkworks.com
Wed, 2 Aug 2000 18:46:56 -0400


I've lost my Zope zen, why doesn't this work?

My folders and documents
/  (folder)
  strader  (folder)
     FormatDate  (external method)
     outbound  (folder)
        PackagInfo (dtml document)
        FormatColumnTable (dtml method)


PackageInfo has code like this:

<dtml-with "GetDB().Package.TrackingNumber_index.select(trackingnumber).fetchone()">
<dtml-var FormatDate>
<table width="100%" border="0">
<dtml-var "FormatColumnTable(columnlist=packagecolumns,obj=GetSelf(),notable=1)">
</dtml-with>

FormatColumnTable has code like this:

<dtml-let value="something ">
<dtml-var "FormatDate(date=value)">
</dtml-let>

However this FormatDate raises a NameError in DT_Util.py, line 335  
(version 2.1.6 of Zope)

Is PackageInfo's use of dtml-with blocking acquisition of FormatDate?

The object returned for use with dtml-with in PackageInfo raises an 
AttributeError when trying to find FormatDate as an attribute, this is 
correct... what gives?



Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements