API methods and descriptions#
api.addon
#
Add-on information. |
|
Set of add-ons not available for installation. |
|
|
Information about an Add-on. |
|
List add-ons ids in this Plone site. |
|
List add-ons in this Plone site. |
|
Return the version of the product (package). |
|
Install an add-on. |
|
Uninstall an add-on. |
api.content
#
|
Copy the object to the target container. |
|
Create a new content item. |
|
Delete the object(s). |
Disable acquisition of local roles on given obj. |
|
Enable acquisition of local roles on given obj. |
|
|
Find content in the portal. |
|
Get an object. |
|
Get the closest ancestor that matches the criteria. |
|
Get the current workflow state of the object. |
|
Get the object's Universally Unique IDentifier (UUID). |
|
Get a BrowserView object. |
|
Get the path of an object. |
|
Get the current workflow state of the object. |
|
Get the object's Universally Unique IDentifier (UUID). |
|
Get a BrowserView object. |
|
Iterate over the object ancestors. |
|
Move the object to the target container. |
|
Rename the object. |
|
Perform a workflow transition. |
api.env
#
|
Context manager for temporarily switching roles. |
|
Context manager for temporarily switching user inside a block. |
Return True if your zope instance is running in debug mode. |
|
Return Plone version number. |
|
Check if the Zope instance is running on a read-only ZODB. |
|
Returns True if you are running the zope test runner. |
|
Return Zope 2 version number. |
api.exc
#
Raised when the portal object cannot be retrieved. |
|
Raised when a specified or implicit group can not be retrieved. |
|
Raised when a parameter is invalid. |
|
Raised when a parameter is missing. |
|
Base exception class for plone.api errors. |
|
Raised when a specified or implicit user can not be retrieved. |
api.group
#
|
Add the user to a group. |
|
Create a group. |
|
Delete a group. |
|
Get a group. |
|
Get all groups or all groups filtered by user. |
|
Get group's site-wide or local roles. |
|
Grant roles to a group. |
|
Remove the user from a group. |
|
Revoke roles from a group. |
api.portal
#
Get the Plone portal object out of thin air. |
|
|
Return the current negotiated language. |
Return the default language. |
|
|
Display a date/time in a user-friendly way. |
|
Get the navigation root object for the context. |
|
Get a record value from |
|
Get a portal tool in a simple way. |
|
Return a vocabulary object with the given name. |
Return a list of vocabulary names. |
|
|
Send an email. |
|
Set a record value in the |
|
Display a status message. |
|
Translate a message into a given language. |
api.relation
#
|
Create a relation from source to target using zc.relation. |
|
Delete relation or relations. |
|
Get specific relations given a source/target/relationship. |
api.user
#
|
Create a user. |
|
Delete a user. |
|
Get a user. |
Get the currently logged-in user. |
|
|
Get user's site-wide or local permissions. |
|
Get user's site-wide or local roles. |
|
Get all users or all users filtered by group. |
|
Grant roles to a user. |
|
Check whether this user has the given permission. |
Check if the currently logged-in user is anonymous. |
|
|
Revoke roles from a user. |