Problem combining python code and html
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Wed May 11 16:02:53 EDT 2005
Hansan a écrit :
> Hi all, I hope you have time to help me out a little. My problem is that I
> want to combine some python code I have made with some html templates, I
> found a tutorial at dev shed:
(snip a whole lot of code)
> But I get the error message:
> error: multiple repeat
> args = ('multiple repeat',) ", Content,TemplateInput) File
> "/home//Python-2.3.2//lib/python2.3/sre.py", line 151, in subn return
> _compile(pattern, 0).subn(repl, string, count)
> I tried making the templates global, but that dosnt help either.
Why should it ?
> Is the code from dev shed wrong,
Seems like... And it is *very* ugly.
> And is there a nother way to combine python code and html templates?
Many. The one I prefer is Zope Page Templates (there's a free-standing
implementation named SimpleTAL), but I didn't tried all and every
existing solutions.
More information about the Python-list
mailing list