Package twisted :: Package popsicle :: Module repos :: Class DirectoryRepository

[show private | hide private]
[frames | no frames]

## Class DirectoryRepository

    Repository --+
                 |
                DirectoryRepository

Known Subclasses:
  `Mailsicle`, `Picklesicle`

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

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 1.1 on Sat Feb 15 21:17:57 2003 | http://epydoc.sf.net