[ZPT] Build Template w/Macros from Python
   
    Evan Simpson
     
    evan@4-am.com
       
    Thu, 01 Aug 2002 16:27:55 -0500
    
    
  
Jim Kutter wrote:
 > I have a page (entry.html) that does the use-macro jazz, and
 > tal:replaces a form (form.html) into that page (I need the form code
 > elsewhere too).
 >
 > I also have a python script (process.py) that is the target of that
 > form that does validation, etc... If there's an error with the form,
 > that script writes the error messages to options/message, then
 > returns the form (form.html) with those options.
 >
 > Problem is I want the form to have the decorations with it that the
 > use-macro(in entry.html) uses when it (form.html) is returned from
 > the python script(process.py).
Sorry, I almost-but-don't-quite follow this.  You mention both use-macro 
and tal:replace, which are both possible methods for embedding form.html 
-- which are you using on what?  If you want the stuff from entry.html 
wrapped around form.html, why not return it (entry.html) from the script 
instead?
Cheers,
Evan @ 4-am