| Trees | Index | Help |
|---|
| Package CMFDefault :: Module MetadataTool :: Class MetadataTool |
|
ActionProviderBase --+
|
object --+ |
| |
Base --+ |
| |
object --+ | |
| | |
Base --+ | |
| | |
CopySource --+ |
| |
Node --+ | |
| | |
Element --+ |
| |
object --+ | |
| | |
Base --+ | |
| | |
Owned --+ |
| |
object --+ | |
| | |
Base --+ | |
| | |
EtagSupport --+ | | |
| | | |
LockableItem --+ | |
| | |
Resource --+ |
| |
object --+ | |
| | |
Base --+ | |
| | |
Tabs --+ |
| |
Traversable --+ |
| |
object --+ | |
| | |
Base --+ | |
| | |
UndoSupport --+ |
| |
Item --+ |
| |
object --+ | |
| | |
Base --+ | |
| | |
object --+ | | |
| | | |
Persistent --+ | |
| | |
Persistent --+ |
| |
object --+ | |
| | |
Base --+ | |
| | |
RoleManager --+ | |
| | |
RoleManager --+ |
| |
object --+ | |
| | |
Base --+ | |
| | |
Acquirer --+ |
| |
SimpleItem --+
|
object --+ |
| |
Base --+ |
| |
ImmutableId --+ |
| |
UniqueObject --+
|
MetadataTool
| Method Summary | |
|---|---|
__init__(self,
publisher,
element_specs)
| |
Add a type-specific policy for one of our elements. | |
Add 'element' to our list of managed elements. | |
Form handler for "tool-wide" properties (including list of metadata elements). | |
Return an ElementSpec representing the tool's knowledge of 'element'. | |
Convert an internal userid to a "formal" name, if possible, perhaps using the 'portal_membership' tool. | |
Return the "formal" name of the publisher of the portal. | |
List the allowed 'Content-type' values for a particular portal_type, or all possible formats if none supplied. | |
List the allowed language values. | |
List the allowed values for a "Rights" selection list; this gets especially important where syndication is involved. | |
List allowed keywords for a given portal_type, or all possible keywords if none supplied. | |
List allowed keywords for a given portal_type, or all possible keywords if none supplied. | |
Return a list of ElementSpecs representing the elements managed by the tool. | |
Show all policies for a given content type, or the default if None. | |
Remvoe a type-specific policy for one of our elements. | |
Remove 'element' from our list of managed elements. | |
Set initial values for content metatdata, supplying any site-specific defaults. | |
Update a policy for one of our elements ('content_type' will be '<default>' when we edit the default). | |
Enforce portal-wide policies about DCI, e.g., requiring non-empty title/description, etc. | |
| Inherited from ImmutableId | |
Never allow renaming! | |
| Inherited from Item | |
| |
Show the physical path of the object and its context if available. | |
| |
Return the id of the object as a string. | |
| |
| |
| |
| |
| |
Directory listing for FTP. | |
Psuedo stat, used by FTP for directory listings. | |
| |
| |
| |
| |
| |
Return the title if it is not blank and the id otherwise. | |
Return the title if it is not blank and the id otherwise. | |
| |
| |
| Inherited from Resource | |
Create a duplicate of the source resource whose state and behavior match that of the source resource as closely as possible. | |
| |
| |
| |
Delete a resource. | |
Retrieve resource information without a response body. | |
| |
Lock a resource | |
Gets the document source | |
Create a new collection resource. | |
Move a resource to a new location. | |
Retrieve communication options. | |
Retrieve properties defined on the resource. | |
Set and/or remove properties defined on the resource. | |
Replace the GET response entity of an existing resource. | |
Return the HTTP message received back to the client as the entity-body of a 200 (OK) response. | |
Remove an existing lock on a resource. | |
| Inherited from LockableItem | |
| |
| |
| |
| |
| |
| |
if 'killinvalids' is 1, locks who are no longer valid will be deleted | |
| |
| |
| |
| Inherited from EtagSupport | |
| |
| |
| |
| |
| Inherited from CopySource | |
| |
| |
| |
Called to make sure this object is copyable. | |
| |
Overide this to be pickly about where you go! | |
| |
| Inherited from Tabs | |
| |
| |
| |
Dispatch to first interface in manage_options | |
| |
| |
| Inherited from Traversable | |
Return the absolute URL of the object. | |
Return the path portion of the absolute URL of the object. | |
Get the physical path of the object. | |
| |
Lookup an object by path. | |
Return a URL for the object, relative to the site root. | |
| Inherited from Element | |
Retrieves an attribute value by name. | |
Retrieves an Attr node by name or None if there is no such attribute. | |
Returns a NodeList that contains all children of this node. | |
Returns a NodeList of all the Elements with a given tag name in the order in which they would be encountered in a preorder traversal of the Document tree. | |
The first child of this node. | |
The last child of this node. | |
The node immediately preceding this node. | |
The name of this node, depending on its type | |
A code representing the type of the node. | |
The parent of this node. | |
The node immediately preceding this node. | |
The name of the element | |
| Inherited from Node | |
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise. | |
The value of this node, depending on its type | |
The Document object associated with this node. | |
Returns true if the node has any children, false if it doesn't. | |
| Inherited from Owned | |
Change the ownership to the given user. | |
Get the owner | |
Return a tuple, (userdb_path, user_id) for the owner. | |
Get the owner, modestly wrapped in the user folder. | |
Change the type (implicit or explicit) of ownership. | |
| |
Take ownership (responsibility) for an object. | |
Get ownership info for display | |
| |
| |
| Inherited from UndoSupport | |
| |
| |
| |
| Inherited from Persistent | |
| |
x.__getattribute__('name') <==> x.name | |
| |
Was the object modified in any version? | |
Was the object modified in this version? | |
| Inherited from Persistent | |
x.__delattr__('name') <==> del x.name | |
Get the object serialization state | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
Reduce an object to contituent parts for serialization | |
x.__setattr__('name', value) <==> x.name = value | |
Set the object serialization state The state should be in one of 3 forms: - None Ignored - A dictionary In this case, the object's instance dictionary will be cleared and updated with the new state. | |
_p_activate() -- Activate the object | |
_p_deactivate() -- Deactivate the object | |
This method should be called by subclass __delattr__ implementations before doing anything else. | |
The method unghostifies the object, if necessary. | |
_p_invalidate() -- Invalidate the object | |
This method should be called by subclass __setattr__ implementations before doing anything else. | |
| Inherited from Acquirer | |
__of__(context) -- return the object in a context | |
| Inherited from RoleManager | |
| |
Return debug info. | |
Used by management screen. | |
| |
| |
| |
| |
Return an interface for making permissions settings. | |
Change the permissions that acquire. | |
Set local roles for a user. | |
Change all permissions settings, called by management screen. | |
Called by management screen. | |
Remove all local roles for a user. | |
| |
Change the settings for the given permission. | |
Change the permissions given to the given role. | |
Set local roles for a user. | |
Return user-role permission settings. | |
Used by management screen. | |
| |
Used by management screen. | |
Return list of user-defined roles. | |
| |
Return list of valid roles. | |
Return true if all given roles are valid. | |
Return list of valid roles. | |
| |
| |
| |
| |
| Inherited from RoleManager | |
Return the permission mapping for the object This is a list of dictionaries with: permission_name -- The name of the native object permission class_permission -- The class permission the permission is mapped to. | |
Change the permission mapping | |
| |
| |
| Inherited from ActionProviderBase | |
Add an action to our list. | |
Update our list of actions. | |
Delete actions indicated by indexes in 'selections'. | |
Get an ActionInfo object specified by a chain of actions. | |
Return the actions object or None if action doesn't exist. | |
| |
List all the actions defined by a provider. | |
Show the 'Actions' management tab. | |
Move the specified actions down one slot in our list. | |
Move the specified actions up one slot in our list. | |
| |
Extract an ActionInformation from the funky form properties. | |
| |
| |
| Inherited from Base | |
Get arguments to be passed to __new__ | |
| Inherited from object | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
tuple |
__ac_permissions__ = (('Manage portal', ('propertiesForm...
|
tuple |
__implements__ = (<Interface Products.CMFCore.interfaces...
|
PermissionRole |
addElementPolicy__roles__ = <PermissionRole object at 0x...
|
PermissionRole |
addElementSpec__roles__ = <PermissionRole object at 0xb5...
|
PermissionRole |
editProperties__roles__ = <PermissionRole object at 0xb5...
|
NoneType |
element_specs = None |
DTMLFile |
elementPoliciesForm = <App.special_dtml.DTMLFile object ...
|
PermissionRole |
elementPoliciesForm__roles__ = <PermissionRole object at...
|
PermissionRole |
getElementSpec__roles__ = <PermissionRole object at 0xb5...
|
tuple |
getFullName__roles__ = ()
|
NoneType |
getPublisher__roles__ = None |
str |
id = 'portal_metadata'
|
NoneType |
listAllowedFormats__roles__ = None |
NoneType |
listAllowedLanguages__roles__ = None |
NoneType |
listAllowedRights__roles__ = None |
NoneType |
listAllowedSubjects__roles__ = None |
NoneType |
listAllowedVocabulary__roles__ = None |
PermissionRole |
listElementSpecs__roles__ = <PermissionRole object at 0x...
|
PermissionRole |
listPolicies__roles__ = <PermissionRole object at 0xb58e...
|
tuple |
manage_options = ({'action': 'manage_editActionsForm', '...
|
DTMLFile |
manage_overview = <App.special_dtml.DTMLFile object at 0...
|
PermissionRole |
manage_overview__roles__ = <PermissionRole object at 0xb...
|
str |
meta_type = 'Default Metadata Tool'
|
DTMLFile |
propertiesForm = <App.special_dtml.DTMLFile object at 0x...
|
PermissionRole |
propertiesForm__roles__ = <PermissionRole object at 0xb5...
|
str |
publisher = ''
|
PermissionRole |
removeElementPolicy__roles__ = <PermissionRole object at...
|
PermissionRole |
removeElementSpec__roles__ = <PermissionRole object at 0...
|
PermissionRole |
setInitialMetadata__roles__ = <PermissionRole object at ...
|
PermissionRole |
updateElementPolicy__roles__ = <PermissionRole object at...
|
PermissionRole |
validateMetadata__roles__ = <PermissionRole object at 0x...
|
tuple |
_actions = ()
|
| Inherited from UniqueObject | |
Implements |
__implemented__ = <implementedBy Products.CMFCore.utils....
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
int |
__replaceable__ = 2 |
| Inherited from ImmutableId | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
| Inherited from Item | |
int |
__allow_access_to_unprotected_subobjects__ = 1 |
str |
__name__ = 'Item'
|
tuple |
__propsets__ = ()
|
PermissionRole |
analyseDocumentation__roles__ = <PermissionRole object a...
|
NoneType |
getId__roles__ = None |
str |
icon = ''
|
int |
isPrincipiaFolderish = 0 |
int |
isTopLevelPrincipiaApplicationObject = 0 |
tuple |
manage__roles__ = ('Manager',)
|
tuple |
manage_afterAdd__roles__ = ('Manager',)
|
tuple |
manage_afterClone__roles__ = ('Manager',)
|
tuple |
manage_beforeDelete__roles__ = ('Manager',)
|
tuple |
manage_editedDialog__roles__ = ('Manager',)
|
tuple |
manage_FTPlist__roles__ = ('Manager',)
|
tuple |
manage_FTPstat__roles__ = ('Manager',)
|
str |
REQUEST = '<Special Object Used to Force Acquisition>'
|
ClassicHTMLFile |
showDocumentation = <App.special_dtml.ClassicHTMLFile ob...
|
PermissionRole |
showDocumentation__roles__ = <PermissionRole object at 0...
|
str |
title = ''
|
DTMLFile |
_manage_editedDialog = <App.special_dtml.DTMLFile object...
|
| Inherited from Resource | |
int |
__dav_resource__ = 1 |
tuple |
__http_methods__ = ('GET', 'HEAD', 'POST', 'PUT', 'DELET...
|
tuple |
COPY__roles__ = ('Anonymous',)
|
PermissionRole |
DELETE__roles__ = <PermissionRole object at 0xb7457188>
|
PermissionRole |
HEAD__roles__ = <PermissionRole object at 0xb7457140>
|
PermissionRole |
listDAVObjects__roles__ = <PermissionRole object at 0xb7...
|
PermissionRole |
LOCK__roles__ = <PermissionRole object at 0xb74571a0>
|
PermissionRole |
manage_DAVget__roles__ = <PermissionRole object at 0xb74...
|
tuple |
MOVE__roles__ = ('Anonymous',)
|
NoneType |
OPTIONS__roles__ = None |
PermissionRole |
PROPFIND__roles__ = <PermissionRole object at 0xb7457158...
|
PermissionRole |
PROPPATCH__roles__ = <PermissionRole object at 0xb745717...
|
NoneType |
TRACE__roles__ = None |
PermissionRole |
UNLOCK__roles__ = <PermissionRole object at 0xb74571b8>
|
| Inherited from LockableItem | |
PermissionRole |
wl_clearLocks__roles__ = <PermissionRole object at 0xb75...
|
PermissionRole |
wl_delLock__roles__ = <PermissionRole object at 0xb7558d...
|
NoneType |
wl_getLock__roles__ = None |
PermissionRole |
wl_grantLockToUser__roles__ = <PermissionRole object at ...
|
NoneType |
wl_isLocked__roles__ = None |
NoneType |
wl_isLockedByUser__roles__ = None |
NoneType |
wl_lockItems__roles__ = None |
tuple |
wl_lockmapping__roles__ = ()
|
NoneType |
wl_lockTokens__roles__ = None |
NoneType |
wl_lockValues__roles__ = None |
PermissionRole |
wl_setLock__roles__ = <PermissionRole object at 0xb7558e...
|
| Inherited from Tabs | |
NoneType |
class_manage_path__roles__ = None |
NoneType |
filtered_manage_options__roles__ = None |
DTMLFile |
manage_tabs = <App.special_dtml.DTMLFile object at 0xb74...
|
tuple |
manage_tabs__roles__ = ('Anonymous',)
|
tuple |
manage_workspace__roles__ = ('Authenticated',)
|
| Inherited from Traversable | |
NoneType |
absolute_url__roles__ = None &nbs |