XML_pickle

17 views
Skip to first unread message

Richard

unread,
Mar 25, 2016, 10:40:45 PM3/25/16
to web2py-developers
Hello,

In html.py there is :


# ## important to allow safe session.flash=T(....)


def XML_unpickle(data):
   
return XML(marshal.loads(data))


def XML_pickle(data):
   
return XML_unpickle, (marshal.dumps(str(data)),)
copy_reg
.pickle(XML, XML_pickle, XML_unpickle)


I search on github repo and found no usage... I succeed in testing them, but I wonder if they are useful...

Thanks

Richard

Massimo DiPierro

unread,
Mar 25, 2016, 10:43:39 PM3/25/16
to web2py-d...@googlegroups.com
it is for one tries to store a helper that may contain a XML(“Hello”) object in a session.

--
-- mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/
---
You received this message because you are subscribed to the Google Groups "web2py-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages