Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Attributes
Archetypes.UIDCatalog.PluggableCatalog Class Reference
Inheritance diagram for Archetypes.UIDCatalog.PluggableCatalog:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.UIDCatalog.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 44 of file UIDCatalog.py.


Member Function Documentation

Tricky brains overrides, we need to use our own class here
with annotation support

Definition at line 51 of file UIDCatalog.py.

00051 
00052     def useBrains(self, brains):
00053         """Tricky brains overrides, we need to use our own class here
00054         with annotation support
00055         """
00056         class plugbrains(self.BASE_CLASS, brains):
00057             pass
00058 
00059         schema = self.schema
00060         scopy = schema.copy()
00061 
00062         scopy['data_record_id_']=len(schema.keys())
00063         scopy['data_record_score_']=len(schema.keys())+1
00064         scopy['data_record_normalized_score_']=len(schema.keys())+2
00065 
00066         plugbrains.__record_schema__ = scopy
00067 
00068         self._v_brains = brains
00069         self._v_result_class = plugbrains
00070 
00071 InitializeClass(PluggableCatalog)


Member Data Documentation

Definition at line 67 of file UIDCatalog.py.

Definition at line 68 of file UIDCatalog.py.

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

Definition at line 48 of file UIDCatalog.py.


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