>
> 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
>
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
=?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"
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
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