class ZMSFilterManager(ZMSItem.ZMSItem): (source)
Constructor: ZMSFilterManager(filters, processes)
Implements interfaces: Products.zms.IZMSConfigurationProvider.IZMSConfigurationProvider, Products.zms.IZMSRepositoryProvider.IZMSRepositoryProvider
Manage reusable content filters and their executable process chains.
The filter manager persists local filter definitions, optional uploaded process assets, and repository import/export payloads used for sync.
| Method | __init__ |
Initialize the manager from serialized filters and processes. |
| Method | del |
Delete a filter definition and its uploaded assets. |
| Method | del |
Remove a process from a filter and renumber stored assets. |
| Method | del |
Delete a process definition and its backing Zope object. |
| Method | export |
Export selected filters and processes as an XML download. |
| Method | get |
Return a filter definition, falling back to the portal master. |
| Method | get |
Return the available filter ids, including acquired ones. |
| Method | get |
Return process definitions attached to a filter. |
| Method | get |
Return a process definition, falling back to the portal master. |
| Method | get |
Return the available process ids, including acquired ones. |
| Method | import |
Import one or more filter manager entries from XML data. |
| Method | manage_change |
Handle ZMI actions for filters and filter-process assignments. |
| Method | manage_change |
Handle ZMI actions for creating, editing, and deleting processes. |
| Method | manage |
Return parent management tabs with local relative actions. |
| Method | manage |
Return the filter manager sub tabs shown in the ZMI. |
| Method | move |
Move a filter process to a new position in the pipeline. |
| Method | provide |
Build a repository export mapping for filters and processes. |
| Method | set |
Create or update a filter definition. |
| Method | set |
Append a process to a filter and persist its optional file asset. |
| Method | set |
Create or update an executable process definition. |
| Method | update |
Apply one repository item to the local filter manager state. |
| Class Variable | __ac |
Undocumented |
| Class Variable | __administrator |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | meta |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Instance Variable | filters |
Undocumented |
| Instance Variable | id |
Undocumented |
| Instance Variable | processes |
Undocumented |
| Method | _import |
Import a single parsed XML item. |
Initialize the manager from serialized filters and processes.
| Parameters | |
| filters:list | Persisted filter definitions. |
| processes:list | Persisted process definitions. |
Delete a filter definition and its uploaded assets.
| Parameters | |
| id:str | Filter identifier. |
| Returns | |
| str | Empty string for legacy callers. |
Remove a process from a filter and renumber stored assets.
| Parameters | |
| id:str | Filter identifier. |
| index:int | Process position to remove. |
| Returns | |
| int | Legacy sentinel value. |
Delete a process definition and its backing Zope object.
| Parameters | |
| id:str | Process identifier. |
| Returns | |
| str | Empty string for legacy callers. |
Export selected filters and processes as an XML download.
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest | The active HTTP request. |
| RESPONSE:ZPublisher.HTTPResponse | The active HTTP response. |
| Returns | |
| str | Serialized XML export data. |
Return a filter definition, falling back to the portal master.
| Parameters | |
| id:str | Filter identifier. |
| Returns | |
| dict | Filter metadata. |
Return the available filter ids, including acquired ones.
| Parameters | |
| sort:bool | Sort by display name when true. |
| Returns | |
| list | Filter ids. |
Return process definitions attached to a filter.
| Parameters | |
| id:str | Filter identifier. |
| Returns | |
| list | Filter process descriptors with optional uploaded files. |
Return a process definition, falling back to the portal master.
| Parameters | |
| id:str | Process identifier. |
| Returns | |
| dict | Process metadata and synchronized command data. |
Return the available process ids, including acquired ones.
| Parameters | |
| sort:bool | Sort by display name when true. |
| Returns | |
| list | Process ids. |
Import one or more filter manager entries from XML data.
| Parameters | |
| xml:str | XML string or uploaded file-like object. |
Handle ZMI actions for filters and filter-process assignments.
| Parameters | |
| lang:str | Active UI language. |
| btn:str | Submitted button id. |
| key:str | Secondary action key. |
| REQUEST:ZPublisher.HTTPRequest | The active HTTP request. |
| RESPONSE:ZPublisher.HTTPResponse | The active HTTP response. |
| Returns | |
| object | Redirect response or export payload. |
Handle ZMI actions for creating, editing, and deleting processes.
| Parameters | |
| lang:str | Active UI language. |
| btn:str | Submitted button id. |
| key:str | Secondary action key. |
| REQUEST:ZPublisher.HTTPRequest | The active HTTP request. |
| RESPONSE:ZPublisher.HTTPResponse | The active HTTP response. |
| Returns | |
| object | Redirect response or export payload. |
Move a filter process to a new position in the pipeline.
| Parameters | |
| id:str | Filter identifier. |
| index:int | Current process position. |
| pos:int | Target process position. |
| Returns | |
| int | The new position. |
Build a repository export mapping for filters and processes.
| Parameters | |
| r:dict | Repository accumulator passed by the caller. |
| ids:list | Optional subset of ids to export. |
| Returns | |
| dict | Repository data keyed by object id. |
Create or update a filter definition.
| Parameters | |
| old | Existing filter id to replace. |
| new | Target filter id. |
| new | Whether the filter is acquired from a master portal. |
| new | Display name. |
| new | Filter input format. |
| new | Filter output content type. |
| new | Descriptive help text. |
| new | Allowed roles. |
| new | Supported content meta types. |
| Returns | |
| str | The persisted filter id. |
Append a process to a filter and persist its optional file asset.
| Parameters | |
| id:str | Filter identifier. |
| index:int | Process position inside the filter pipeline. |
| new | Linked process id. |
| new | Optional uploaded process file. |
| Returns | |
| int | The appended process index. |
Create or update an executable process definition.
| Parameters | |
| old | Existing process id to replace. |
| new | Target process id. |
| new | Whether the process is acquired from a master portal. |
| new | Display name. |
| new | Backing Zope object type. |
| new | Source text or uploaded blob for the process. |
| Returns | |
| str | The persisted process id. |