class ZMS(ZMSCustom, _accessmanager.AccessManager, _builder.Builder, _confmanager.ConfManager, _objattrs.ObjAttrsManager, _zcatalogmanager.ZCatalogManager): (source)
Constructor: ZMS()
Root ZMS content object that combines configuration, editing, and indexing.
| Method | __before |
Maintenance mode can be set by adding the ZMS configuration key ZMS.mode.maintenance=1. The maintenance mode prevents editing content and returns an error: 503 Service Unavailable. To show a specific message the Zope object standard_error_message should be customized, e... |
| Method | __init__ |
Initialize the root object with the default content id. |
| Method | get |
Return the home folder of the portal master or the local site. |
| Method | get |
Return the Dublin Core coverage string for the primary language. |
| Method | get |
Return the document element of the site tree. |
| Method | get |
Return the folder that contains the document element. |
| Method | get |
Return a new unique object identifier. |
| Method | get |
Return None because the site root has no parent node. |
| Method | get |
Return portal clients configured below the site home folder. |
| Method | get |
Return the configured portal master, or None if absent. |
| Method | get |
Return the topmost portal master in the current site hierarchy. |
| Method | get |
Return the site's trashcan object. |
| Method | init |
Delegate site initialization to the module-level helper. |
| Method | manage_add |
Add the media database helper object. |
| Method | xml |
Reset root-level import state before XML builder processing starts. |
| Method | zms |
Return the product version string, optionally including custom metadata. |
| Class Variable | __ac |
Undocumented |
| Class Variable | __administrator |
Undocumented |
| Class Variable | __author |
Undocumented |
| Class Variable | __user |
Undocumented |
| Class Variable | __view |
Undocumented |
| Class Variable | d |
Undocumented |
| Class Variable | enum |
Undocumented |
| Class Variable | f_head |
Undocumented |
| Class Variable | f_head |
Undocumented |
| Class Variable | f_head |
Undocumented |
| Class Variable | f_head |
Undocumented |
| Class Variable | f |
Undocumented |
| Class Variable | f |
Undocumented |
| Class Variable | f |
Undocumented |
| Class Variable | head |
Undocumented |
| Class Variable | head |
Undocumented |
| Class Variable | head |
Undocumented |
| Class Variable | head |
Undocumented |
| Class Variable | index |
Undocumented |
| Class Variable | meta |
Undocumented |
| Class Variable | meta |
Undocumented |
| Class Variable | openapi |
Undocumented |
| Class Variable | swagger |
Undocumented |
| Class Variable | zms |
Undocumented |
| Class Variable | zms |
Undocumented |
| Instance Variable | d |
Undocumented |
| Instance Variable | d |
Undocumented |
| Instance Variable | id |
Undocumented |
| Instance Variable | o |
Undocumented |
Maintenance mode can be set by adding the ZMS configuration key ZMS.mode.maintenance=1. The maintenance mode prevents editing content and returns an error: 503 Service Unavailable. To show a specific message the Zope object standard_error_message should be customized, e.g. like this:
<tal:block
tal:define="
errtype python:options.get('error_type',None);
errvalue python:options.get('error_value',None)"
tal:condition="python:errtype=='HTTPServiceUnavailable' and str(errvalue)=='Maintenance'">
<h2>ZMS Maintenance active</h2>
<button onclick="history.back()">Go Back</button>
</tal:block>
Return the Dublin Core coverage string for the primary language.
| Parameters | |
| REQUEST:dict | Optional request mapping. |
| Returns | |
| str | Global coverage identifier. |
Return a new unique object identifier.
| Parameters | |
| id | Prefix used for the generated id. |
| Returns | |
| str | Unique object id. |
Delegate site initialization to the module-level helper.
| Parameters | |
| container:OFS.ObjectManager.ObjectManager | Container that receives the new ZMS object. |
| id:str | Identifier of the created object. |
| titlealt:str | Alternative title shown in management views. |
| title:str | Human readable site title. |
| lang:str | Primary content language. |
| manage | Management interface language. |
| REQUEST:ZPublisher.HTTPRequest.HTTPRequest | HTTP request with initialization options. |
| minimal | Initialize only the minimal default configuration. |
| Returns | |
| ZMS | Newly created and initialized ZMS site. |
Add the media database helper object.
| Parameters | |
| location:str | Filesystem location of the media database. |
| REQUEST:ZPublisher.HTTPRequest.HTTPRequest | None | Optional HTTP request. |
| RESPONSE:ZPublisher.HTTPResponse.HTTPResponse | None | Optional HTTP response. |
Reset root-level import state before XML builder processing starts.
| Parameters | |
| s | Name of the XML start tag. |
| d | Attributes of the XML start tag. |
| o | Parent node passed by the XML builder. |