class ZMSContainerObject(zmsobject.ZMSObject, RoleManager, _accessmanager.AccessableContainer, _versionmanager.VersionManagerContainer): (source)
Base container object that manages child-node creation, ordering, and deletion.
| Method | filtered |
Returns a node-list that contains all visible children of this node in correct order. If none, this is a empty node-list. |
| Method | filtered |
Returns a node-list that contains all visible children of this subtree in correct order. If none, this is a empty node-list. |
| Method | first |
Returns the first visible child of this node. |
| Method | get |
Return a page-sized sequence of nodes following the given uid. |
| Method | get |
Return all child nodes of this object in stable sort order. |
| Method | get |
Returns MIME-type (text/html). |
| Method | get |
Returns the first page of the tree from root (or document-element if root is not given). |
| Method | get |
Return the index-navigation elements for the current content context. |
| Method | get |
Returns the last page of the tree from root (or document-element if root is not given). |
| Method | get |
Return the content-area navigation elements for the current subtree. |
| Method | get |
Returns html-formatted (unordered) list of navigation-items. Uses the following classes |
| Method | get |
Get new sort-id. |
| Method | get |
Returns the next page of this node from root (or document-element if root is not given). |
| Method | get |
Returns the previous page of this node from root (or document-element if root is not given). |
| Method | manage_add |
Add a custom node of the type designated by meta_id in current context. |
| Method | manage_add |
Add default node. |
| Method | manage_add |
Add module-node. |
| Method | manage_add |
Add a node of type designated by meta_id in current context. |
| Method | manage_ajax |
Move the current object relative to another node using drag-and-drop. |
| Method | manage_ajax |
Returns ZMI actions. internal use only |
| Method | manage_delete |
Delete a subordinate object logically: The objects specified in 'ids' get deleted (moved to trashcan). |
| Method | manage_erase |
Delete a subordinate object physically: The objects specified in 'ids' get deleted. |
| Method | manage_undo |
Undo a subordinate object: The objects specified in 'ids' get undone (changes are rolled-back). |
| Method | move |
Move subordinate objects to the trashcan and update search state. |
| Method | normalize |
Normalizes sort-ids for all children with given prefix of this node. Always called on container after new node was added. E.g.: sort_ids:before=[10,15,20,30,40] => sort_ids:after=[10,20,30,40,50] |
| Constant | NOREF |
Undocumented |
| Constant | NORESOLVEREF |
Undocumented |
| Constant | PAGEELEMENTS |
Undocumented |
| Constant | PAGES |
Undocumented |
| Class Variable | __ac |
Undocumented |
| Class Variable | __administrator |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage_importexport |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Class Variable | zmi |
Undocumented |
Returns a node-list that contains all visible children of this node in correct order. If none, this is a empty node-list.
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest=None | the triggering request |
| meta | the meta_type(s) (single or list), may also be ZMSContainerObject.PAGES or ZMSContainerObject.PAGEELEMENTS |
| Returns | |
| list<ZMSObject> | the list of ZMSObjects |
Returns a node-list that contains all visible children of this subtree in correct order. If none, this is a empty node-list.
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest=None | the triggering request |
| meta | the meta_type(s) (single or list), may also be ZMSContainerObject.PAGES or ZMSContainerObject.PAGEELEMENTS |
| order | Undocumented |
| order | Undocumented |
| max | Undocumented |
| recursive | Undocumented |
| Returns | |
| list<ZMSObject> | the list of ZMSObjects |
Returns the first visible child of this node.
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest=None | the triggering request |
| meta | the meta_type(s) (single or list), may also be ZMSContainerObject.PAGES or ZMSContainerObject.PAGEELEMENTS |
| Returns | |
| ZMSObject | the first ZMSObject |
Return a page-sized sequence of nodes following the given uid.
| Parameters | |
| uid:str | Start node uid. |
| page | Maximum number of nodes to return. |
| clients:bool | Traverse portal clients as well. |
| Returns | |
| tuple | Tuple of nodes and next-page marker. |
Return all child nodes of this object in stable sort order.
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest | Optional request used for language and visibility filtering. |
| meta | Optional meta-type selector. |
| reid:str | Optional regular expression for child ids. |
| Returns | |
| list<ZMSObject> | Matching child nodes. |
Returns MIME-type (text/html).
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| Returns | |
| str | always returns 'text/html' |
Returns the first page of the tree from root (or document-element if root is not given).
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| inc | Undocumented |
| root | Undocumented |
| Returns | |
| zmsobject.ZMSObject | the first page |
Return the index-navigation elements for the current content context.
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest | Current request. |
| Returns | |
| list | Index navigation elements. |
Returns the last page of the tree from root (or document-element if root is not given).
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| inc | Undocumented |
| root | Undocumented |
| Returns | |
| zmsobject.ZMSObject | the last page |
Return the content-area navigation elements for the current subtree.
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest | Current request. |
| expand | Include the full subtree when true. |
| current | Current child node if the traversal is recursive. |
| sub | Child navigation elements collected so far. |
| Returns | |
| list | Navigation elements. |
Returns html-formatted (unordered) list of navigation-items. Uses the following classes
- current item is current-element
- (in-)active items is parent of current-element or current-element
- restricted item has restricted access
| Parameters | |
| current:zmsobject.ZMSObject | the currently displayed page |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| opt | the dictionary of options
|
| depth | Undocumented |
| Returns | |
| str | the Html |
Returns the next page of this node from root (or document-element if root is not given).
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| inc | Undocumented |
| root | Undocumented |
| Returns | |
| zmsobject.ZMSObject | the next page |
Returns the previous page of this node from root (or document-element if root is not given).
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| inc | Undocumented |
| root | Undocumented |
| Returns | |
| zmsobject.ZMSObject | the previous page |
Add a custom node of the type designated by meta_id in current context.
| Parameters | |
| meta | the meta-id / type of the new ZMSObject |
| values:dict | the dictionary of initial attribute values assigned to the new ZMSObject |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| Returns | |
| zmsobject.ZMSObject | the new node |
Add default node.
Internal use only.
| Parameters | |
| lang:str | the language-id. |
| id | the id-prefix. |
| _sort | Undocumented |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| RESPONSE:ZPublisher.HTTPResponse | the triggering response |
Add module-node.
Internal use only.
| Parameters | |
| lang:str | the language-id. |
| _sort | sort id |
| custom:str | the meta-id |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| RESPONSE:ZPublisher.HTTPResponse | the triggering response |
Add a node of type designated by meta_id in current context.
| Parameters | |
| meta | the meta-id / type of the new ZMSObject |
| values:dict | the dictionary of initial attribute values assigned to the new ZMSObject
|
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| Returns | |
| zmsobject.ZMSObject | the new node |
Move the current object relative to another node using drag-and-drop.
| Parameters | |
| lang:str | Active language. |
| target:str | Drag-and-drop target marker. |
| REQUEST:ZPublisher.HTTPRequest | Current request. |
| RESPONSE:ZPublisher.HTTPResponse | Current response. |
Returns ZMI actions. internal use only
| Parameters | |
| context | Undocumented |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| RESPONSE:ZPublisher.HTTPResponse | the response |
Delete a subordinate object logically: The objects specified in 'ids' get deleted (moved to trashcan).
| Parameters | |
| lang:str | the language-id. |
| ids:list | the list of object-ids. |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| RESPONSE:ZPublisher.HTTPResponse | the triggering response |
Delete a subordinate object physically: The objects specified in 'ids' get deleted.
| Parameters | |
| lang:str | the language-id. |
| ids:list | the list of object-ids. |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| RESPONSE:ZPublisher.HTTPResponse | the triggering response |
Undo a subordinate object: The objects specified in 'ids' get undone (changes are rolled-back).
| Parameters | |
| lang:str | the language-id. |
| ids:list | the list of object-ids. |
| REQUEST:ZPublisher.HTTPRequest | the triggering request |
| RESPONSE:ZPublisher.HTTPResponse | the triggering response |
Move subordinate objects to the trashcan and update search state.
| Parameters | |
| ids:list | List of object ids. |
| REQUEST:ZPublisher.HTTPRequest | Current request. |