Hi! Is there any way to store data(python dictionaries, objects, tuples) on server without ZODB that will available to all sessions? Best regards, Andrew
Андрей Пучин wrote:
Hi!
Is there any way to store data(python dictionaries, objects, tuples) on server without ZODB that will available to all sessions?
You can pickle the objects and write this as a blob into a database. But I would use ZODB. thomas
=?koi8-r?B?4c7E0sXKIPDV3snO?= writes:
Is there any way to store data(python dictionaries, objects, tuples) on server without ZODB that will available to all sessions? Sure!
Your options: * in a database * in a session * in a file * in RAM * maybe more For some options, you would serialize the objects. This can be done with the pickle or marshal methods. "marshal" will only work for elementary type (not objects, e.g.). "pickle" will work with most types. See the Python library documentation, for details. Dieter
participants (3)
-
Dieter Maurer -
Thomas Guettler -
Андрей Пучин