[Zope-dev] RFE: Make PythonScripts.standard available from DTML _.standard

Steve Alexander steve@cat-box.net
Fri, 05 Jan 2001 13:58:54 +0000


Steve Alexander wrote:

> 
> The PythonScripts product could add these functions to the _ namespace 
> variable at product init time, so there would be no need to change the 
> DocumentTemplate modules.

And here's a patch:
Just add these lines at the end of
   lib/python/Products/PythonScripts/standard.py

from DocumentTemplate.DT_Util import d
import standard
d['standard']=standard
del standard

Of course, you could add similar lines to PythonScripts/__init__.py, or 
in a completely new "enable python scripts standard module with dtml" 
product.

-- 
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net