Re: [Zope] Namespace problem with folders starting with numbers
11 May
2001
11 May
'01
8:02 p.m.
Ausum writes:
I need to retrieve a property nested at a document placed within folders whose names start with numbers. Like this:
<dtml-var "folder1.2000.12345.dtmldoc.this_property"> The general solution: "computed attribute access"
"_.getattr(<object>,<expression evaluating to attribute name>)" This general solution will give you a monstrous expression.... Folders expose their content through subscription (and through attributes). This means, you can use: "<folder>[<expression evaluation to the content item name>]" That is quite readable. Finally, you can use "restrictedTraverses". Dieter
9097
Age (days ago)
9097
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dieter Maurer