Hi,

I've got some user registration controller that tries do this:

1. receive user registration data via POST
2. try to create user account with received data and send an e-mail
using .txt template
3. if user account data is not valid it renders a html page with error message

The problem is that I've coded the user creation code to accept e-mail
message template as one of its arguments. To please this code, I have
to render the e-mail template
(``render.activation_message().__unicode__()``), and pass it that. For
some strange reason, if I render a .txt template before rendering a
.html template, the response CONTENT_TYPE headers seems to get stuck
at 'text/plain' and my html template is rendered as text. I'm still
trying to figure out where exactly in web.py does this happen, but no
luck so far.

If anyone knows any workaround, or if this is, indeed, a bug, please
let me know.

-- 
Branko Vukelić

http://foxbunny.tumblr.com/
http://www.flickr.com/photos/16889...@n04/
http://www.twitter.com/foxbunny

--

You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.


Reply via email to