c.l.vocabularies : package documentation

Part of canonical.launchpad

Vocabularies for content objects.

Here should vocabularies that represent a set of conent objects be placed. Vocabularies that are used only for providing a UI are better placed in the browser code.

Note that you probably shouldn't be importing stuff from these modules, as it is better to have your Schemas fields look up the vocabularies by name. Some of these vocabularies will only work if looked up by name, as they require context to calculare the available options. It also avoids circular import issues.

eg.

class IFoo(Interface):
thingy = Choice(..., vocabulary='Thingies')

The binding of name -> class is done in the configure.zcml

Module dbobjects Vocabularies pulling stuff from the database.
Package tests Undocumented
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.