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)
    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)

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

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