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

Type Lazy

object --+    
         |    
     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.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

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.1 on Tue May 10 18:27:29 2005 http://epydoc.sf.net