[Zope] Namespace problem with folders starting with numbers
Fri, 11 May 2001 22:02:36 +0200 (CEST)
> 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".