[Zope3-dev] Associations

Florent Guillaume fg@nuxeo.com
Sun, 27 Jan 2002 23:36:51 +0000 (UTC)


> My solution for the time being is to just directly reference the schema from 
> the documents as an attribute. When the document is instanciated, you will be 
> able to pick the schema or provide a path to it. The constructor will find 
> the schema object and set it in the document.

As an illustration, the CMF way (I think) would be to have a
portal_schema tool, and to get the schema object you would do:
  stool = self.portal_schema # or getToolByName(self, 'portal_schema')
  schema = stool.getSchema(schema_id)


Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com