class documentation
class ZMSMetacmdProvider(ZMSItem.ZMSItem): (source)
Constructor: ZMSMetacmdProvider(commands)
Implements interfaces: Products.zms.IZMSConfigurationProvider.IZMSConfigurationProvider, Products.zms.IZMSMetacmdProvider.IZMSMetacmdProvider, Products.zms.IZMSRepositoryProvider.IZMSRepositoryProvider
Provider for configurable meta-commands and their repository/xml sync.
| Method | __get |
Return the raw command dict from self.commands for the given id. |
| Method | __init__ |
Initialise the manager with a persistent copy of command definitions. |
| Method | del |
Delete one meta-command definition and remove its underlying Zope object. |
| Method | get |
Resolve readme for ZMSItem.readme(): ZODB only for metacmd ids. |
| Method | get |
Return one fully-resolved meta-command, including object metadata and code. |
| Method | get |
Returns description of meta-command specified by ID. |
| Method | get |
Return all meta-command ids, optionally sorted by command name. |
| Method | get |
Return filesystem path to the readme.md of a meta-command folder. |
| Method | get |
Return meta-commands filtered by stereotype and optionally executable context. |
| Method | has |
Check whether a ZODB readme object exists for metacmd id. |
| Method | import |
Import one or many command entries from XML text or file-like input. |
| Method | manage_change |
Handle ZMI actions for meta-commands (acquire/save/copy/delete/export/import/insert). |
| Method | manage |
Handle the ZMI action 'manage_options'. |
| Method | manage |
Handle the ZMI action 'manage_sub_options'. |
| Method | provide |
Build repository export data for selected meta-commands. |
| Method | set |
Create or update one meta-command and synchronise its implementation object. |
| Method | translate |
Translate repository records from Impl-based format into flat command maps. |
| Method | update |
Import one command from repository payload and persist it locally. |
| 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 | manage |
Undocumented |
| Class Variable | meta |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Instance Variable | commands |
Undocumented |
| Instance Variable | id |
Undocumented |
| Method | _get |
Return or lazily create the OFS.Folder 'metacmd_readme' inside metacmd_manager. |
| Method | _get |
Return OFS.File for the metacmd readme, syncing from filesystem on first access. |
| Method | _import |
Import one command entry from parsed XML payload. |
| Method | _set |
Create or replace the OFS.File readme for metacmd id inside metacmd_readme/. |
Return meta-commands filtered by stereotype and optionally executable context.
When context is provided, role/meta-type/node constraints are evaluated.
Build repository export data for selected meta-commands.
| Parameters | |
| ids:list | None | Optional list of command ids to export. |
| Returns | |
| dict | Mapping keyed by command id. |
def setMetacmd(self, id, newId, newAcquired, newPackage='', newRevision='0.0.0', newName='', newTitle='', newMethod=None, newData=None, newExecution=0, newDescription='', newIconClazz='', newMetaTypes=[], newRoles=[ 'ZMSAdministrator'], newNodes='{$}'):
(source)
¶
Create or update one meta-command and synchronise its implementation object.
| Returns | |
| str | Effective command id. |
Import one command from repository payload and persist it locally.
| Parameters | |
| r:dict | Repository record for one command. |
| Returns | |
| str | Imported command id. |