Cheshire3 Object Model - ObjectStore


class cheshire3.baseObjects.ObjectStore(session, config, parent=None)[source]

A persistent storage mechanism for configured Cheshire3 objects.

create_object(session, obj=None)[source]

Create a slot for and store a serialized Cheshire3 Object.

Given a Cheshire3 object, create a serialized form of it in the database. Note: You should use create_record() as per RecordStore to create an object from a configuration.

delete_object(session, id)[source]

Delete an object.

fetch_object(session, id)[source]

Fetch and return an object.

store_object(session, obj)[source]

Store an object, potentially overwriting an existing copy.


The following implementations are included in the distribution by default:

class cheshire3.objectStore.BdbObjectStore(session, config, parent)[source]

BerkeleyDB based implementation of an ObjectStore.

Store XML records in RecordStore, retrieve and instantiate when requested.

In addition to the default implementation, the cheshire3.sql provides the following implementations: