Package Products :: Package ZCatalog :: Module CatalogBrains :: Class AbstractCatalogBrain
[show private | hide private]
[frames | no frames]

Type AbstractCatalogBrain

              object --+        
                       |        
                    Base --+    
                           |    
                    Acquirer --+
                               |
          object --+           |
                   |           |
                Base --+       |
                       |       |
NoInstanceDictionaryBase --+   |
                           |   |
                      Record --+
                               |
                              AbstractCatalogBrain

Known Subclasses:
UIDCatalogBrains

Abstract base brain that handles looking up attributes as required, and provides just enough smarts to let us get the URL, path, and cataloged object without having to ask the catalog directly.
Method Summary
  getObject(self, REQUEST)
Return the object for this record
  getPath(self)
Get the physical path for this record
  getRID(self)
Return the record ID for this object.
  getURL(self, relative)
Generate a URL for this record
  has_key(self, key)
  _unrestrictedGetObject(self)
Return the object for this record
    Inherited from Record
  __init__(v)
__init__([v]) -- Initialize a record, possibly with state
  __add__(x, y)
x.__add__(y) <==> x+y
  __cmp__(x, y)
x.__cmp__(y) <==> cmp(x,y)
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __delitem__(x, y)
x.__delitem__(y) <==> del x[y]
  __delslice__(x, i, j)
Use of negative indices is not supported.
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __getitem__(x, y)
x.__getitem__(y) <==> x[y]
  __getslice__(x, i, j)
Use of negative indices is not supported.
  __getstate__()
__getstate__() -- Get the record's data
  __len__(x)
x.__len__() <==> len(x)
  __mul__(x, n)
x.__mul__(n) <==> x*n
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __rmul__(x, n)
x.__rmul__(n) <==> n*x
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __setitem__(x, i, y)
x.__setitem__(i, y) <==> x[i]=y
  __setslice__(x, i, j, y)
Use of negative indices is not supported.
  __setstate__(v)
__setstate__(v) -- Set the record's data
    Inherited from Acquirer
  __of__(context)
__of__(context) -- return the object in a context
    Inherited from Base
  __getnewargs__(...)
Get arguments to be passed to __new__
  __reduce__(...)
Reduce an object to contituent parts for serialization
    Inherited from object
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
    Inherited from Record
int __allow_access_to_unprotected_subobjects__ = 1                                                                     

Method Details

getObject(self, REQUEST=None)

Return the object for this record

Will return None if the object cannot be found via its cataloged path (i.e., it was deleted or moved without recataloging), or if the user is not authorized to access the object.

This method mimicks a subset of what publisher's traversal does, so it allows access if the final object can be accessed even if intermediate objects cannot.

getPath(self)

Get the physical path for this record

getRID(self)

Return the record ID for this object.

getURL(self, relative=0)

Generate a URL for this record

_unrestrictedGetObject(self)

Return the object for this record

Same as getObject, but does not do security checks.

Generated by Epydoc 2.1 on Wed Nov 30 03:03:10 2005 http://epydoc.sf.net