Package bazaar :: Module cache :: Class Lazy
[show private | hide private]
[frames | no frames]

Class Lazy

Cache --+
        |
       Lazy

Known Subclasses:
LazyAssociation, LazyObject

Abstract, basic cache class for lazy objects and association data loading.
Method Summary
  __getitem__(self, param)
Return referenced object or association data.
    Inherited from Cache
  __init__(self, owner)
Create cache object.
  load(self, key)
Load referenced objects or association data from database.

Instance Variable Summary
  dicttype: Weak dictionary superclass, i.e.
    Inherited from Cache
  owner: Owner of the cache - object broker or association object.

Method Details

__getitem__(self, param)
(Indexing operator)

Return referenced object or association data.
Parameters:
param - Referenced object primary key value or application object.
Overrides:
bazaar.cache.Cache.__getitem__

Instance Variable Details

dicttype

Weak dictionary superclass, i.e. WeakValueDictionary or WeakKeyDictionary.

Generated by Epydoc 2.0 on Tue Mar 23 14:53:30 2004 http://epydoc.sf.net