-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Withers wrote:
> Hi Guys,
> 
> Can you remember why you added the following line to ZopePageTemplate.py?
> 
>       content_type = 'text/html'
> 
> It seems to arbitarily lock new page templates (or subclasses of them) 
> into text/html mode.
> 
> MailTemplates subclass ZopePageTemplate and expect to be text/plain by 
> default...

That code is there only when reading from the default content, right?
And that file is *definitely* 'text/html'.

Why don't you just override it at class level in the subclass?  For
instance, override '__init__' to read your file before calling the
'super' version, and pass its contents through as 'text', along with
your desired 'content_type'.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHNNvE+gerLs4ltQ4RAuOcAKDN/dv+ADtX3tZOpKFqH9AJ2GbKOwCfeyvZ
rzHP8cn3/KF+OsMZxWzBvb4=
=r2oa
-----END PGP SIGNATURE-----
_______________________________________________
Zope-Dev maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to