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

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

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 for examples