Re: [Zope] Confusing aq - I don't get it, anyone know why?
Brad Clements writes: > ... Name Error in called DTML method > Here, you break the namespace propagation! As a general rule: If you call a DTML object explicitely (i.e. inside "..."), then *always* use "_.None" (or an object or object tuple) and "_" as the first two positional parameters. Only after these two, use your parameters as keyword parameters. If you do not, you break the namespace propagation (passing the "_" down to your called DTML object). If you use the DTML object outside "..." (or in _[...]), then the DTML magic does automatic propagation. Inside "...", you must do it explicitely. Dieter ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] Confusing aq - I don't get it, anyone know why?
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: FormatColumnTable has code like this: 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,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope maillist - [EMAIL PROTECTED] 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 )