2 Jul
2001
2 Jul
'01
6:35 p.m.
Jason Alexander writes:
I'm attempting to do variable file includes, where the actual file name is held in a column in a database, but I am having a few issues. Apparently, you want "Computed Variable Access", i.e. access a variable the name of which is not constant but only determined at runtime.
You do that with the expressions "_[name_expr]" or "_.getitem(name_expr)". The first form renders the object (what you will want in your case), the second one returns the object unrendered. More information URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html Dieter