You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return a list of addons (plone.api.addon.AddonInformation) in the installation.
Example:
fromploneimportapifromplone.api.addonimportAddonInformationaddons=api.addon.get_addons()
# List of AddonInformationassertisinstance(addons, list)
assertisinstance(addons[0], AddonInformation)
It is possible to filter the addons using the parameter limit:
fromploneimportapi# Return all valid addonsall_addons=api.addon.get_addons()
# Only installed addonsinstalled_addons=api.addon.get_addons(limit="installed")
# Only upgradable (already installed) addonsupgradable_addons=api.addon.get_addons(limit="upgradable")
# Available addons -- not installedavailable_addons=api.addon.get_addons(limit="available")
# It is also possible to get addons not available in the UI# Only broken addons (with installation problems)broken_addons=api.addon.get_addons(limit="broken")
# Only non-installable addonsbroken_addons=api.addon.get_addons(limit="non_installable")
api.addon.get_addons_ids
Similar to api.addon.get_addons, but return only the addon ids.
Example:
fromploneimportapiaddons_ids=api.addon.get_addons_ids()
# List of strassertisinstance(addons_ids, list)
assertisinstance(addons_ids[0], str)
api.addon.get
Get information about one addon.
Example:
fromploneimportapi# Get information about plone.restapiaddon=api.addon.get("plone.restapi")
assertaddon.id, "plone.restapi"assertaddon.validisTrueassertaddon.description=="RESTful hypermedia API for Plone."assertaddon.profile_type=="default"assertaddon.version=="8.21.0"
api.addon.get_addons
Return a list of addons (
plone.api.addon.AddonInformation
) in the installation.Example:
It is possible to filter the addons using the parameter
limit
:api.addon.get_addons_ids
Similar to
api.addon.get_addons
, but return only the addon ids.Example:
api.addon.get
Get information about one addon.
Example:
api.addon.install
Install an addon
Example:
api.addon.uninstall
Uninstall an addon
Example:
The text was updated successfully, but these errors were encountered: