RE: [Zope-dev] Re: [Zope] ANN: Python Methods 0.1.7 up and over t o DC
-----Original Message----- From: Itamar Shtull-Trauring [mailto:itamars@ibm.net] Sent: Monday, December 13, 1999 4:48 PM To: Phillip J. Eby Cc: zope-dev@zope.org Subject: [Zope-dev] Re: [Zope] ANN: Python Methods 0.1.7 up and over to DC
Moved to zope-dev.
"Phillip J. Eby" wrote:
At the risk of excessively critiquing such a young and exciting product, may I suggest that some care be taken w/respect to namespace issues in PythonMethods? That is, rather than adding things like "special_formats" and using special names like "traverse_subpath", couldn't we use import with a special module path? (E.g. "from _Zope.special_formats import html_quote".) Then, specials would not be a part of the common namespace.
This would be the only thing you can import in any case (no imports in PM), so how about just renaming traverse_subpath to _traverse_subpath and special_formats to _special_formats? That way there's no chance of namespace conflicts without adding an import.
I agree with Phillip though, we are going down the route of DTML and straying from python by populating the namespace with assumed objects. -Michel
participants (1)
-
Michel Pelletier