API Documentation

Classes

ContentTypeRegistry , ContentTypeRegistryPredicate

Putfactory registration tool interface.

$Id: ContentTypeRegistry.py,v 1.5.14.2 2004/04/23 21:11:34 sidnei Exp $


class ContentTypeRegistry

Registry for rules which map PUT args to a CMF Type Object.


Methods

findTypeName(name, typ, body):

Perform a lookup over a collection of rules, returning the the Type object corresponding to name/typ/body. Return None if no match found.


class ContentTypeRegistryPredicate

Express a rule for matching a given name/typ/body.

predicateWidget
Return a snipped of HTML suitable for editing the predicate; the snippet should arrange for values to be marshalled by ZPublisher as a :record, with the ID of the predicate as the name of the record.

The registry will call the predictate's edit method, passing the fields of the record.


Methods

__call__(name, typ, body):

Return true if the rule matches, else false.

getTypeLabel():

Return a human-readable label for the predicate type.