__record_schema__ is simply a dictionary which maps field names to column 
positions (ints) so that the record knows the index of each field in the 
record tuples.

See line 154 of Catalog.py to see how it is initialized to the Metadata schema 
plus a few extra columns for catalog rid and scores.

-Casey

On Friday 09 August 2002 07:17 am, Johan Carlsson [Torped] wrote:
> Hi,
> I'm back on the Brain track :-)
> What function does the __record_schema__ attribute of the Brains have?
> 
> Does it do anything else when provide the has_key feature?
>      def has_key(self, key):
>          return self.__record_schema__.has_key(key)
> 
> 
> Best Regards,
> Johan Carlsson


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to