[Zope-dev] DT_Var, DT_Util questions.

Andreas Kostyrka andreas@mtg.co.at
Mon, 28 Jun 1999 11:28:57 +0200 (CEST)


Reading over DT_Var, I've noticed the following:

    # The rest are depricated:
    'sql-quote': sql_quote,
    'html-quote': html_quote,

So how do I express the meaning of <!--#var name html_quote--> without the
html_quote subtag?

I'm asking this, because I'm currently developing a generalised Spooling
mechanism, and because of the intended usage, I planned to produce 
something like this:

<!--#spool ls_zwax_2-->
\documentclass[a4paper]{dinbrief}
\usepackage{mtgbrief}
\begin{document}
\date{<!--#var date_to_print tex_quote-->}
\begin{letter}{<!--#var adr_name tex_quote--> \\
...
<!--#/spool-->

Ok, so the tex_quote format should be probably declared in a seperate
package, because people who don't spool LaTeX documents don't need it, but
what is the correct way to provide this functionality?

                                - --- -

Another question, what is the correct way to parse any argument type with 
DT_Util.parse_params? (Or what other function to use?)

At the moment, I'm stuck with

<!--#spool faxqueue_zwax arg1="<!--#var faxno-->"-->

I'd prefer to allow queues to take arbitrary named arguments as in

<!--#spool faxqueue_zwax faxno="<!--#var faxno-->"-->

Andreas
-- 
Win95: n., A huge annoying boot virus that causes random spontaneous system
     crashes, usually just before saving a massive project.  Easily cured by
     UNIX.  See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98.