class documentation

class ZMSTextformatManager(object): (source)

View In Hierarchy

Manage block text formats used by rich-text editing and export/import.

Method delTextformat Remove one text format by id and persist the resulting list.
Method getTextFormat Return one ZMSTextformat wrapper for the given format id.
Method getTextFormatDefault Return the default text-format id, falling back to the first or body.
Method getTextFormats Return all configured text formats sorted by display label.
Method importTextformatXml Import one or many text-format records from XML content.
Method manage_changeTextformat Handle add/edit/delete/import/export actions for text-format entries.
Method setDefaultTextformat Mark the given text-format id as default and clear previous defaults.
Method setTextformat Create or update one text-format definition.
Instance Variable textformats Undocumented
Method _importTextformatXml Import a single serialized text-format entry into self.textformats.
def delTextformat(self, id): (source)

Remove one text format by id and persist the resulting list.

def getTextFormat(self, id, REQUEST): (source)

Return one ZMSTextformat wrapper for the given format id.

def getTextFormatDefault(self): (source)

Return the default text-format id, falling back to the first or body.

def getTextFormats(self, REQUEST): (source)

Return all configured text formats sorted by display label.

def importTextformatXml(self, xml): (source)

Import one or many text-format records from XML content.

def manage_changeTextformat(self, lang, btn, REQUEST, RESPONSE): (source)

Handle add/edit/delete/import/export actions for text-format entries.

def setDefaultTextformat(self, id): (source)

Mark the given text-format id as default and clear previous defaults.

def setTextformat(self, id, newId, newDisplay, newZMILang, newTag='', newSubtag='', newAttrs='', newRichedit=0, newUsage=[]): (source)

Create or update one text-format definition.

textformats = (source)

Undocumented

def _importTextformatXml(self, item): (source)

Import a single serialized text-format entry into self.textformats.