Package twisted :: Package popsicle :: Module repos :: Class DirectoryRepository
[frames | no frames]

Class DirectoryRepository

Repository --+
             |
            DirectoryRepository

Known Subclasses:
Mailsicle, Picklesicle

Method Summary
  __init__(self, dirname)
  generateOID(self, obj)
Generate an OID synchronously.
    Inherited from Repository
  __getstate__(self)
  __setstate__(self, dct)
  _cbLoadedOID(self, result, oid, pref)
  cache(self, oid, obj, finished)
Weakly cache an object for the given OID.
  cleaned(self)
The freezer finished cleaning, and some of my objects were cleaned.
  createOID(self, oid, klass)
Create an instance with an oid and cache it.
  getOID(self, obj)
  load(self, oid)
Load an object from cache or by OID.
  loadNow(self, oid)
External API for synchronously loading stuff.
  loadOID(self, oid)
Implement me to return a Deferred if you want to implement asynchronous loading.
  loadOIDNow(self, oid)
Implement me if you want to implement synchronous loading.
  loadRef(self, pRef)
Synonymous with ref.__call__().
  save(self, obj)
Save an object...
  saveOID(self, oid, obj)
Return a Deferred which will fire True when the object is saved.

Class Variable Summary
    Inherited from Repository
int _lastOID = 0                                                                     

Method Details

generateOID(self, obj)

Generate an OID synchronously.

Necessary for some types of persistence, but
Overrides:
twisted.popsicle.repos.Repository.generateOID (inherited documentation)

Generated by Epydoc 2.0 on Sat Sep 13 04:21:11 2003 http://epydoc.sf.net