module documentation

zmscustom.py - ZMS Custom Content Class for Site-Specific Customization and Plugin Extensions

Defines ZMSCustom for site-specific customization and plugin extensions. It allows overriding default behavior through configuration, subclassing, or plugin hooks.

License: GNU General Public License v2 or later, Organization: ZMS Publishing

Class ZMSCustom Custom content node with record-set editing and import helpers.
Function containerFilter Return True for ZMS containers that may host custom content.
Function manage_addZMSCustom Constructor function for adding custom content nodes
Function parseXmlString Import record-set rows from an XML payload into the current object.
Variable manage_addZMSCustomForm Undocumented
def containerFilter(container): (source)

Return True for ZMS containers that may host custom content.

def manage_addZMSCustom(self, meta_id, lang, _sort_id, btn, REQUEST, RESPONSE): (source)

Constructor function for adding custom content nodes

Parameters
selfUndocumented
meta_id:strthe meta-id / type of the new ZMSObject
lang:strthe language-id.
_sort_id:intthe sort value.
btn:strthe submitting button value.
REQUEST:ZPublisher.HTTPRequestthe triggering request
RESPONSE:ZPublisher.HTTPResponsethe triggering response
def parseXmlString(self, file): (source)

Import record-set rows from an XML payload into the current object.

Parameters
selfUndocumented
file:ZPublisher.HTTPRequest.FileUploadUploaded XML file.
Returns
strImport status message.
manage_addZMSCustomForm = (source)

Undocumented