Back to index

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

List of all members.

Public Member Functions

def useBrains

Static Public Attributes

tuple security = ClassSecurityInfo()

Private Attributes

 _v_brains
 _v_result_class

Detailed Description

Definition at line 240 of file ReferenceEngine.py.


Member Function Documentation

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 263 of file ReferenceEngine.py.

Definition at line 264 of file ReferenceEngine.py.

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

Definition at line 244 of file ReferenceEngine.py.


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