class documentation

class ZMSFormatProviderAcquired(ZMSFormatProvider.ZMSFormatProvider): (source)

Constructor: ZMSFormatProviderAcquired(textformats, charformats)

Implements interfaces: Products.zms.IZMSFormatProvider.IZMSFormatProvider

View In Hierarchy

Delegate formatting configuration to the portal master.

The acquired provider exposes text and character formats from the master portal while adapting URLs for local editor usage.

Method __init__ Initialize the acquired format manager stub.
Method getCharFormats Return character formats from the portal master with local button URLs.
Method getTextFormat Return a text format definition delegated from the portal master.
Method getTextFormatDefault Return the default text format from the portal master.
Method getTextFormats Return all available text formats from the portal master.
Class Variable meta_type Undocumented
Instance Variable id Undocumented
def __init__(self, textformats=[], charformats=[]): (source)

Initialize the acquired format manager stub.

Parameters
textformats:listUnused compatibility argument.
charformats:listUnused compatibility argument.
def getCharFormats(self): (source)

Return character formats from the portal master with local button URLs.

Returns
listCharacter format definitions.
def getTextFormat(self, id, REQUEST): (source)

Return a text format definition delegated from the portal master.

Parameters
id:strText format identifier.
REQUEST:ZPublisher.HTTPRequestThe active HTTP request.
Returns
dictText format definition or None.
def getTextFormatDefault(self): (source)

Return the default text format from the portal master.

Returns
strThe default text format id or None.
def getTextFormats(self, REQUEST): (source)

Return all available text formats from the portal master.

Parameters
REQUEST:ZPublisher.HTTPRequestThe active HTTP request.
Returns
listText format definitions.
meta_type: str = (source)

Undocumented

Undocumented