Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
Archetypes.ReferenceEngine.ReferenceBaseCatalog Class Reference
Inheritance diagram for Archetypes.ReferenceEngine.ReferenceBaseCatalog:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.ReferenceEngine.ReferenceBaseCatalog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def useBrains

Static Public Attributes

 BASE_CLASS = ReferenceCatalogBrains
tuple security = ClassSecurityInfo()

Detailed Description

Definition at line 268 of file ReferenceEngine.py.


Member Function Documentation

def Archetypes.ReferenceEngine.PluggableCatalog.useBrains (   self,
  brains 
) [inherited]
Tricky brains overrides, we need to use our own class here
with annotation support

Definition at line 247 of file ReferenceEngine.py.

00247 
00248     def useBrains(self, brains):
00249         """Tricky brains overrides, we need to use our own class here
00250         with annotation support
00251         """
00252         class plugbrains(self.BASE_CLASS, brains):
00253             pass
00254 
00255         schema = self.schema
00256         scopy = schema.copy()
00257 
00258         scopy['data_record_id_']=len(schema.keys())
00259         scopy['data_record_score_']=len(schema.keys())+1
00260         scopy['data_record_normalized_score_']=len(schema.keys())+2
00261 
00262         plugbrains.__record_schema__ = scopy
00263 
00264         self._v_brains = brains
00265         self._v_result_class = plugbrains
00266 
00267 InitializeClass(PluggableCatalog)


Member Data Documentation

Definition at line 269 of file ReferenceEngine.py.

tuple Archetypes.ReferenceEngine.PluggableCatalog.security = ClassSecurityInfo() [static, inherited]

Definition at line 244 of file ReferenceEngine.py.


The documentation for this class was generated from the following file: