2 May
2001
2 May
'01
3:57 p.m.
From: "bak (kedai)" <kedai@kedai.com.my>
what's the equivalent of _.getitem(stuff) in python script?
_.getitem implements a lot of namespace magic, including complex lookup rules and automatic rendering. There are more explicit substitutes, though: 1. getattr(object, stuff): Use if you know which object (context or container, for instance) has an attribute that you are looking for, or can acquire it. 2. f[stuff]: Use to get an object contained in Folder "f". 3. container.REQUEST.get(stuff): Use to get a value from the REQUEST. Cheers, Evan @ digicool & 4-am