[mod_python] obtaining html txt from psp template

Graham Dumpleton grahamd at dscpl.com.au
Tue Sep 5 19:47:53 EDT 2006

Detmar Meurers wrote ..
> Hi Graham,
> Thank you for the pointer to Jim Gallacher's posting, which was very
> close to what I was looking for.  I modified it to get a simple
> string result - the resulting code is included below, in case others
> are interested.
> ...
>      def html(self):
> 	 return " ".join(self.htmlList)

You are introducing a space in between blocks. This could have the affect of
changing the way in which the output is interpreted. Use an empty string

  return "".join(self.htmlList)


More information about the Mod_python mailing list