[Zope-dev] __record_schema__ of Brains (Was: Record.pyd)

Casey Duncan casey@zope.com
Fri, 9 Aug 2002 08:59:40 -0400


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

See line 154 of Catalog.py to see how it is initialized to the Metadata s=
chema=20
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?
>=20
> Does it do anything else when provide the has_key feature?
>      def has_key(self, key):
>          return self.__record_schema__.has_key(key)
>=20
>=20
> Best Regards,
> Johan Carlsson