class documentation

class ZMSContainerObject(zmsobject.ZMSObject, RoleManager, _accessmanager.AccessableContainer, _versionmanager.VersionManagerContainer): (source)

View In Hierarchy

Undocumented

Method filteredChildNodes Returns a node-list that contains all visible children of this node in correct order. If none, this is a empty node-list.
Method filteredTreeNodes Returns a node-list that contains all visible children of this subtree in correct order. If none, this is a empty node-list.
Method firstFilteredChildNode Returns the first visible child of this node.
Method get_next_page Undocumented
Method getChildNodes Returns a node-list that contains all children of this node in correct order. If none, this is a empty node-list.
Method getContentType Returns MIME-type (text/html).
Method getFirstPage Returns the first page of the tree from root (or document-element if root is not given).
Method getIndexNavElements Undocumented
Method getLastPage Returns the last page of the tree from root (or document-element if root is not given).
Method getNavElements Undocumented
Method getNavItems Returns html-formatted (unordered) list of navigation-items. Uses the following classes
Method getNewSortId Get new sort-id.
Method getNextPage Returns the next page of this node from root (or document-element if root is not given).
Method getPrevPage Returns the previous page of this node from root (or document-element if root is not given).
Method manage_addZMSCustom Add a custom node of the type designated by meta_id in current context.
Method manage_addZMSCustomDefault Add default node. internal use only
Method manage_addZMSModule Add module-node. Internal use only.
Method manage_addZMSObject Add a node of type designated by meta_id in current context.
Method manage_ajaxDragDrop ZMSContainerObject.manage_ajaxDragDrop internal use only
Method manage_ajaxZMIActions Returns ZMI actions. internal use only
Method manage_deleteObjs Delete a subordinate object logically: The objects specified in 'ids' get deleted (moved to trashcan).
Method manage_eraseObjs Delete a subordinate object physically: The objects specified in 'ids' get deleted.
Method manage_undoObjs Undo a subordinate object: The objects specified in 'ids' get undone (changes are rolled-back).
Method moveObjsToTrashcan Undocumented
Method normalizeSortIds 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_permissions__ Undocumented
Class Variable __administratorPermissions__ Undocumented
Class Variable manage_container Undocumented
Class Variable manage_importexport Undocumented
Class Variable manage_importexportDebugFilter Undocumented
Class Variable manage_main Undocumented
Class Variable manage_properties Undocumented
Class Variable manage_system Undocumented
Class Variable zmi_manage_main_change Undocumented
Class Variable zmi_manage_main_grid Undocumented
def filteredChildNodes(self, REQUEST=None, meta_types=None): (source)

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=Nonethe triggering request
meta_types:str|listthe meta_type(s) (single or list), may also be ZMSContainerObject.PAGES or ZMSContainerObject.PAGEELEMENTS
Returns
list<ZMSObject>the list of ZMSObjects
def filteredTreeNodes(self, REQUEST, meta_types, order_by=None, order_dir=None, max_len=None, recursive=True): (source)

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=Nonethe triggering request
meta_types:str|listthe meta_type(s) (single or list), may also be ZMSContainerObject.PAGES or ZMSContainerObject.PAGEELEMENTS
order_byUndocumented
order_dirUndocumented
max_lenUndocumented
recursiveUndocumented
Returns
list<ZMSObject>the list of ZMSObjects
def firstFilteredChildNode(self, REQUEST=None, meta_types=None): (source)

Returns the first visible child of this node.

Parameters
REQUEST:ZPublisher.HTTPRequest=Nonethe triggering request
meta_types:str|listthe meta_type(s) (single or list), may also be ZMSContainerObject.PAGES or ZMSContainerObject.PAGEELEMENTS
Returns
ZMSObjectthe first ZMSObject
def get_next_page(self, uid, page_size=100, clients=False): (source)

Undocumented

def getChildNodes(self, REQUEST=None, meta_types=None, reid=None): (source)

Returns a node-list that contains all children of this node in correct order. If none, this is a empty node-list.

def getContentType(self, REQUEST): (source)

Returns MIME-type (text/html).

Parameters
REQUEST:ZPublisher.HTTPRequestthe triggering request
Returns
stralways returns 'text/html'
def getFirstPage(self, REQUEST, incResource=False, root=None): (source)

Returns the first page of the tree from root (or document-element if root is not given).

Parameters
REQUEST:ZPublisher.HTTPRequestthe triggering request
incResourceUndocumented
rootUndocumented
Returns
zmsobject.ZMSObjectthe first page
def getIndexNavElements(self, REQUEST): (source)

Undocumented

def getLastPage(self, REQUEST, incResource=False, root=None): (source)

Returns the last page of the tree from root (or document-element if root is not given).

Parameters
REQUEST:ZPublisher.HTTPRequestthe triggering request
incResourceUndocumented
rootUndocumented
Returns
zmsobject.ZMSObjectthe last page
def getNavElements(self, REQUEST, expand_tree=1, current_child=None, subElements=[]): (source)

Undocumented

def getNavItems(self, current, REQUEST, opt={}, depth=0): (source)

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.ZMSObjectthe currently displayed page
REQUEST:ZPublisher.HTTPRequestthe triggering request
opt

the dictionary of options

  • id (str='') id of base ul-element
  • cssclass (str='') css class of base ul-element
  • add_self (boolean=False) add self to list
  • deep (boolean=True) process child nodes
  • complete (boolean=False) process complete subtree
  • maxdepth (int=100) limits node list to a given depth
  • getrestricted (boolean=True) get is restricted
  • getchildpages (boolean=True) get has child-pages
depthUndocumented
Returns
strthe Html
def getNewSortId(self): (source)

Get new sort-id.

Returns
intthe new sort-id.
def getNextPage(self, REQUEST, incResource=False, root=None): (source)

Returns the next page of this node from root (or document-element if root is not given).

Parameters
REQUEST:ZPublisher.HTTPRequestthe triggering request
incResourceUndocumented
rootUndocumented
Returns
zmsobject.ZMSObjectthe next page
def getPrevPage(self, REQUEST, incResource=False, root=None): (source)

Returns the previous page of this node from root (or document-element if root is not given).

Parameters
REQUEST:ZPublisher.HTTPRequestthe triggering request
incResourceUndocumented
rootUndocumented
Returns
zmsobject.ZMSObjectthe previous page
def manage_addZMSCustom(self, meta_id=None, values={}, REQUEST=None): (source)

Add a custom node of the type designated by meta_id in current context.

Parameters
meta_id:strthe meta-id / type of the new ZMSObject
values:dictthe dictionary of initial attribut-values assigned to the new ZMSObject
REQUEST:ZPublisher.HTTPRequestthe triggering request
Returns
zmsobject.ZMSObjectthe new node
def manage_addZMSCustomDefault(self, lang, id_prefix, _sort_id, REQUEST, RESPONSE): (source)

Add default node. internal use only

Parameters
lang:strthe language-id.
id_prefix:strthe id-prefix.
_sort_idUndocumented
REQUEST:ZPublisher.HTTPRequestthe triggering request
RESPONSE:ZPublisher.HTTPResponsethe triggering request
def manage_addZMSModule(self, lang, _sort_id, custom, REQUEST, RESPONSE): (source)

Add module-node. Internal use only.

Parameters
lang:strthe language-id.
_sort_id:intsort id
custom:strthe meta-id
REQUEST:ZPublisher.HTTPRequestthe triggering request
RESPONSE:ZPublisher.HTTPResponsethe triggering request
def manage_addZMSObject(self, meta_id, values, REQUEST): (source)

Add a node of type designated by meta_id in current context.

Parameters
meta_id:strthe meta-id / type of the new ZMSObject
values:dict

the dictionary of initial attribut-values assigned to the new ZMSObject

  • id_prefix (str='') the id-prefix used to generate the new id
  • id (str='') the new id (fixed)
  • sort_id (str='') the sort-id
  • meta_id (str='') the meta-id
  • active (str='') is active
  • attr_dc_coverage (str='') the coverage
REQUEST:ZPublisher.HTTPRequestthe triggering request
Returns
zmsobject.ZMSObjectthe new node
def manage_ajaxDragDrop(self, lang, target, REQUEST, RESPONSE): (source)

ZMSContainerObject.manage_ajaxDragDrop internal use only

def manage_ajaxZMIActions(self, context_id, REQUEST, RESPONSE): (source)

Returns ZMI actions. internal use only

Parameters
context_idUndocumented
REQUEST:ZPublisher.HTTPRequestthe triggering request
RESPONSE:ZPublisher.HTTPResponsethe response
def manage_deleteObjs(self, lang, ids, REQUEST, RESPONSE=None): (source)

Delete a subordinate object logically: The objects specified in 'ids' get deleted (moved to trashcan).

Parameters
lang:strthe language-id.
ids:listthe list of object-ids.
REQUEST:ZPublisher.HTTPRequestthe triggering request
RESPONSE:ZPublisher.HTTPResponsethe triggering request
def manage_eraseObjs(self, lang, ids, REQUEST, RESPONSE=None): (source)

Delete a subordinate object physically: The objects specified in 'ids' get deleted.

Parameters
lang:strthe language-id.
ids:listthe list of object-ids.
REQUEST:ZPublisher.HTTPRequestthe triggering request
RESPONSE:ZPublisher.HTTPResponsethe triggering request
def manage_undoObjs(self, lang, ids, REQUEST, RESPONSE=None): (source)

Undo a subordinate object: The objects specified in 'ids' get undone (changes are rolled-back).

Parameters
lang:strthe language-id.
ids:listthe list of object-ids.
REQUEST:ZPublisher.HTTPRequestthe triggering request
RESPONSE:ZPublisher.HTTPResponsethe triggering request
def moveObjsToTrashcan(self, ids, REQUEST): (source)

Undocumented

def normalizeSortIds(self, id_prefix='e'): (source)

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]

Parameters
id_prefix:str='e'the id-prefix.
NOREF: int = (source)

Undocumented

Value
4
NORESOLVEREF: int = (source)

Undocumented

Value
5
PAGEELEMENTS: int = (source)

Undocumented

Value
1
PAGES: int = (source)

Undocumented

Value
0
__ac_permissions__ = (source)

Undocumented

__administratorPermissions__: tuple[str, ...] = (source)

Undocumented

manage_container = (source)

Undocumented

manage_importexport = (source)

Undocumented

manage_importexportDebugFilter = (source)

Undocumented

manage_main = (source)

Undocumented

manage_properties = (source)

Undocumented

manage_system = (source)

Undocumented

zmi_manage_main_change = (source)

Undocumented

zmi_manage_main_grid = (source)

Undocumented