Can anyone explain why this code is included in html.py:

667 ### important to allow safe session.flash=T(....)
668
669
670 def XML_unpickle(data):
671     return marshal.loads(data)
672
673
674 def XML_pickle(data):
675     return XML_unpickle, (marshal.dumps(str(data)),)
676 copy_reg.pickle(XML, XML_pickle, XML_unpickle)

I've commented it out for testing and everything seems to work OK, as I can 
see, and no problem with session.flash = XML('Hello <b>world</b>').

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to