Type registration tool interface.
$Id: portal_types.py,v 1.13.14.2 2004/04/23 21:11:34 sidnei Exp $
Registry entry interface.
Return the URL of the action whose ID is id.
Does the current user have the permission required in order to construct an instance?
Textual description of the class of objects (intended for display in a "constructor list").
Return the "human readable" type name (note that it
may not map exactly to the meta_type
, e.g., for
l10n/i18n or where a single content class is being
used twice, under different names.
Returns the portal-relative icon for this type.
Return the Zope meta_type
for this content object.
Can objects of contentType
be added to containers whose
type object we are?
Build a "bare" instance of the appropriate type in
container
, using id
as its id. Return the instance,
seated in the container.
Can this type of object support discussion?
Provides a configurable registry of portal content types.
Build an instance of the appropriate content class in
container
, using id
. If RESPONSE is provided, redirect
to the new object's "initial view".
Return an instance which implements the
ContentTypeInformation interface, corresponding to
the specified contentType
. If contentType is actually
an object, rather than a string, attempt to look up
the appropriate type info using its portal_type.
Return list of content types, or the equivalent
metatypes; if container
is passed, then filter
the list to include only types which are addable in
container
.
Return a sequence of instances which implement the ContentTypeInformation interface, one for each content type regisetered in the portal. If the container is specified, the list will be filtered according to the user's permissions.