[Zope] Server-Side Data

Dieter Maurer dieter@handshake.de
Fri, 8 Feb 2002 23:27:27 +0100


=?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