class documentation

class ZMSTrashcan(zmscontainerobject.ZMSContainerObject): (source)

Constructor: ZMSTrashcan()

View In Hierarchy

Store deleted ZMS objects until garbage collection removes them.

Method __init__ Initialize the trashcan container.
Method getDCCoverage Return global DC coverage for trashcan content.
Method getObjProperty Return an empty property value for synthetic trashcan attributes.
Method getTitle Return the localized trashcan title including the object count.
Method isActive Return whether the trashcan currently contains objects.
Method isPage Return whether the trashcan behaves like a page.
Method isPageContainer Return whether the trashcan can contain page-like children.
Method manage_changeProperties Handle trashcan property updates from the ZMI.
Method manage_options Return the trashcan management tabs shown in the ZMI.
Method run_garbage_collection Delete expired trashcan entries.
Class Variable __ac_permissions__ Undocumented
Class Variable __authorPermissions__ Undocumented
Class Variable manage_properties Undocumented
Class Variable meta_id Undocumented
Class Variable meta_type Undocumented
Class Variable zmi_icon Undocumented
Method _verifyObjectPaste Allow paste operations into the trashcan without additional checks.
def __init__(self): (source)

Initialize the trashcan container.

def getDCCoverage(self, REQUEST={}): (source)

Return global DC coverage for trashcan content.

Parameters
REQUEST:dictThe active HTTP request.
Returns
strGlobal coverage namespace.
def getObjProperty(self, key, REQUEST={}, par=None): (source)

Return an empty property value for synthetic trashcan attributes.

Parameters
key:strProperty identifier.
REQUEST:dictThe active HTTP request.
par:objectOptional parent context.
Returns
strAlways an empty string.
def getTitle(self, REQUEST): (source)

Return the localized trashcan title including the object count.

Parameters
REQUEST:ZPublisher.HTTPRequestThe active HTTP request.
Returns
strLocalized title with item count.
def isActive(self, REQUEST): (source)

Return whether the trashcan currently contains objects.

Parameters
REQUEST:ZPublisher.HTTPRequestThe active HTTP request.
Returns
boolTrue when the trashcan has child nodes.
def isPage(self): (source)

Return whether the trashcan behaves like a page.

Returns
boolAlways False.
def isPageContainer(self): (source)

Return whether the trashcan can contain page-like children.

Returns
boolAlways True.
def manage_changeProperties(self, lang, REQUEST=None): (source)

Handle trashcan property updates from the ZMI.

Parameters
lang:strActive UI language.
REQUEST:ZPublisher.HTTPRequestThe active HTTP request.
Returns
objectRedirect response when triggered from the ZMI.
def manage_options(self): (source)

Return the trashcan management tabs shown in the ZMI.

def run_garbage_collection(self, forced=0): (source)

Delete expired trashcan entries.

Parameters
forced:intRun the cleanup regardless of the last execution time.
__ac_permissions__ = (source)

Undocumented

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

Undocumented

manage_properties = (source)

Undocumented

meta_id: str = (source)

Undocumented

meta_type: str = (source)

Undocumented

zmi_icon: str = (source)

Undocumented

def _verifyObjectPaste(self, object, validate_src=1): (source)

Allow paste operations into the trashcan without additional checks.