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

2001-01-05 Thread Dieter Maurer
Steve Alexander writes: > I like your idea. It is one way to implement my recent "lobbying" request with minimal effort. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HT

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

2001-01-05 Thread Chris Withers
Steve Alexander wrote: > > > eg: > > > "mysomething(_['title_or_id'],_.standard.html_quote(absolute_url()+_[id]))"> > > You are being deliberately Byzantine there! I provided a good example for my case, don't know what Byzantine means, erk :-S > However, I agree with you in principle. > I've

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

2001-01-05 Thread Steve Alexander
Chris Withers wrote: > > If you have something like that, wouldn't it be better, more readable, > etc, for it to be moved intop a python script, even if that script was > only 1 line long? > > eg: > "mysomething(_['title_or_id'],_.standard.html_quote(absolute_url()+_[id]))"> You are being deli

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

2001-01-05 Thread Steve Alexander
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/st

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

2001-01-05 Thread Chris Withers
Steve Alexander wrote: > These functions would be really useful as part of the DTML _ namespace > variable. I sometimes find myself wanting to use html_quote in a DTML > expression. If you have something like that, wouldn't it be better, more readable, etc, for it to be moved intop a python scr