Re: [Zope] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread G. David Kuhlman
> > Hamish Lawson wrote: > > > > I'm using DocumentTemplate from Python (not in Zope) and I want to use > > a custom format 'javascript_quote' that I've written. In my DTML file I > > have: > > [snip] > > > you should implement a formating function and register it with > special_formats >

Re: [Zope] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread Hamish Lawson
Dieter Maurer wrote: > All other "*_quote" features are implemented via *arguments* > (sql_quote, html_quote, url_quote). Why do you want to make > your "javascript_quote" a format? Note, that you may want to > quote a (otherwise) formatted value. I don't especially want to make it a format ra

Re: [Zope] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread Dieter Maurer
=?iso-8859-1?q?Hamish=20Lawson?= writes: > Someone else already answered your question. I would like to ask a consistency question: All other "*_quote" features are implemented via *arguments* (sql_quote, html_quote, url_quote). Why do you want to make your "javascript_quote"

Re: [Zope] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread Hamish Lawson
I wrote: > I'm using DocumentTemplate from Python (not in Zope) and I want to > use a custom format 'javascript_quote' that I've written. Kapil Thangavelu wrote: > you should implement a formating function and register it with > special_format. > for examples of both look near the end /Document

Re: [Zope] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread Kapil Thangavelu
Hamish Lawson wrote: > > I'm using DocumentTemplate from Python (not in Zope) and I want to use > a custom format 'javascript_quote' that I've written. In my DTML file I > have: > > > > and in the Python code I have > > def javascript_quote(s): > > > template = Docum