[Zope] Could namespaces have a .get method?

Dieter Maurer dieter@handshake.de
Thu, 7 Jun 2001 22:26:08 +0200 (CEST)


Casey Duncan writes:
 > Couldn't you do:
 > 
 > "_.getattr(_,variable,_.None)"
 > 
 > to get the desired result?
I would not expect this:

  "getattr" accesses the attributes of "_", such as "string", "int", ...
  It can not access the "content" exposed by the mapping interface
  (e.g. via __getitem__).


A "get" method would also allow to pass "_" as parameter to
Z SQL methods. I called for it a long time ago.
But, helas ...


Dieter