- -
-

pyams_content.shared.common package

- -
-

Submodules

-
-
-

pyams_content.shared.common.manager module

-
-
-class pyams_content.shared.common.manager.BaseSharedTool
-

Bases: pyams_security.security.ProtectedObject, pyams_i18n.content.I18nManagerMixin

-

Base shared tool class

-
-
-contributors
-

Custom field property used to handle role principals

-
- -
-
-managers
-

Custom field property used to handle role principals

-
- -
-
-pilots
-

Custom field property used to handle role principals

-
- -
-
-roles_interface = <InterfaceClass pyams_content.shared.common.interfaces.ISharedToolRoles>
-
- -
-
-shared_content_workflow
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-short_name
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-title
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-webmasters
-

Custom field property used to handle role principals

-
- -
- -
-
-class pyams_content.shared.common.manager.SharedTool
-

Bases: zope.container.folder.Folder, pyams_content.shared.common.manager.BaseSharedTool

-

Shared tool class

-
-
-shared_content_factory = None
-
- -
-
-shared_content_type = None
-
- -
- -
-
-class pyams_content.shared.common.manager.SharedToolContainer
-

Bases: zope.container.folder.Folder

-

Shared tools container

-
-
-short_name
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-title
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
- -
-
-pyams_content.shared.common.manager.SharedToolWorkflowAdapter(context)
-

Shared tool workflow adapter

-
- -
-
-

pyams_content.shared.common.review module

-
-
-

pyams_content.shared.common.security module

-
-
-pyams_content.shared.common.security.SharedContentManagerRestrictions(context)
-

Shared tool manager restrictions

-
- -
-
-class pyams_content.shared.common.security.SharedToolManagerRestrictionInfo(principal_id)
-

Bases: persistent.Persistent

-

Shared tool manager restriction info

-
-
-check_access(context, permission='pyams.ManageContent', request=None)
-
- -
-
-owners
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-principal_id
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-restricted_contents
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-restriction_interface = <InterfaceClass pyams_content.shared.common.interfaces.IManagerRestrictionInfo>
-
- -
- -
-
-class pyams_content.shared.common.security.SharedToolManagerRestrictions(context)
-

Bases: pyams_utils.adapter.ContextAdapter

-

Shared tool manager restrictions

-
-
-drop_restrictions(principal)
-
- -
-
-get_restrictions(principal)
-
- -
-
-set_restrictions(principal, restrictions)
-
- -
- -
-
-pyams_content.shared.common.security.SharedToolManagerRestrictionsFactory(context)
-

Default shared tool manager restrictions factory

-
- -
-
-pyams_content.shared.common.security.handle_revoked_manager_role(event)
-

Handle revoked manager role

-
- -
-
-

pyams_content.shared.common.types module

-
-
-class pyams_content.shared.common.types.BaseDataType
-

Bases: persistent.Persistent, zope.container.contained.Contained

-

Base data type

-
-
-label
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-navigation_label
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-next_label
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-pictogram
-

I18n property class used to handle files

-
- -
-
-seeall_label
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-seealso_label
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-single_label
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-tabfolder_label
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
- -
-
-class pyams_content.shared.common.types.BaseDatatypePermissionChecker(context)
-

Bases: pyams_utils.adapter.ContextAdapter

-

Base data type permission checker

-
-
-edit_permission = 'pyams.ManageTool'
-
- -
- -
-
-class pyams_content.shared.common.types.DataType
-

Bases: pyams_content.shared.common.types.BaseDataType, zope.container.ordered.OrderedContainer

-

Data type persistent class

-
-
-field_names
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
- -
-
-class pyams_content.shared.common.types.SubType
-

Bases: pyams_content.shared.common.types.BaseDataType

-

Data sub-type persistent class

-
- -
-
-class pyams_content.shared.common.types.TypedDataManager
-

Bases: zope.container.ordered.OrderedContainer

-

Data types container persistent class

-
- -
-
-class pyams_content.shared.common.types.TypedSharedTool
-

Bases: pyams_content.shared.common.manager.SharedTool

-

Typed shared tool

-
-
-shared_content_types_fields = None
-
- -
- -
-
-pyams_content.shared.common.types.TypedSharedToolDataManagerFactory(context)
-

Types shared tool data manager factory

-
- -
-
-class pyams_content.shared.common.types.TypedSharedToolDataTypesFields(context)
-

Bases: zope.schema.vocabulary.SimpleVocabulary

-

Typed shared tool data types fields vocabulary

-
- -
-
-class pyams_content.shared.common.types.TypedSharedToolSublocations(context)
-

Bases: pyams_utils.adapter.ContextAdapter

-

Typed shared tool sublocations adapter

-
-
-sublocations()
-
- -
- -
-
-class pyams_content.shared.common.types.TypedSharedToolTypesNamespace(context)
-

Bases: pyams_utils.adapter.ContextAdapter

-

Typed shared tool ++types++ namespace

-
-
-traverse(name, furtherpath=None)
-
- -
- -
-
-

Module contents

-
-
-class pyams_content.shared.common.ContentTypesVocabulary(context)
-

Bases: zope.schema.vocabulary.SimpleVocabulary

-

Content types vocabulary

-
- -
-
-class pyams_content.shared.common.SharedContent
-

Bases: persistent.Persistent, zope.container.contained.Contained

-

Workflow managed shared data

-
-
-sequence_name = ''
-
- -
-
-sequence_prefix = ''
-
- -
-
-view_permission = 'view'
-
- -
-
-workflow_name
-
- -
- -
-
-class pyams_content.shared.common.SharedContentInfoAdapter(context)
-

Bases: pyams_utils.adapter.ContextAdapter

-

Shared content base info adapter

-
-
-created_date
-
- -
-
-modified_date
-
- -
- -
-
-pyams_content.shared.common.SharedContentWorkflowAdapter(context)
-

Shared content workflow adapter

-
- -
-
-class pyams_content.shared.common.SharedSiteVocabulary(context)
-

Bases: zope.schema.vocabulary.SimpleVocabulary

-

Shared sites vocabulary

-
-
-interface = <InterfaceClass pyams_content.shared.common.interfaces.ISharedSite>
-
- -
- -
-
-class pyams_content.shared.common.WfSharedContent
-

Bases: pyams_security.security.ProtectedObject, persistent.Persistent, zope.container.contained.Contained, pyams_i18n.content.I18nManagerMixin

-

Shared data content class

-
-
-content_type = None
-
- -
-
-contributors
-

Custom field property used to handle role principals

-
- -
-
-creation_label
-
- -
-
-creator
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-description
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-first_owner
-
- -
-
-guests
-

Custom field property used to handle role principals

-
- -
-
-keywords
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-last_modifier
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-last_update_label
-
- -
-
-managers
-

Custom field property used to handle role principals

-
- -
-
-modifiers
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-notepad
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-owner
-

Custom field property used to handle role principals

-
- -
-
-readers
-

Custom field property used to handle role principals

-
- -
-
-roles_interface = <InterfaceClass pyams_content.shared.common.interfaces.IWfSharedContentRoles>
-
- -
-
-short_name
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-title
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
- -
-
-class pyams_content.shared.common.WfSharedContentChecker(context)
-

Bases: pyams_content.features.checker.BaseContentChecker

-

Default shared content checker

-
-
-inner_check(request)
-
- -
-
-label = 'Properties'
-
- -
- -
-
-class pyams_content.shared.common.WfSharedContentInfoAdapter(context)
-

Bases: pyams_utils.adapter.ContextAdapter

-

Shared content base info adapter

-
-
-created_date
-
- -
-
-modified_date
-
- -
- -
-
-pyams_content.shared.common.WfSharedContentSequenceAdapter(context)
-

Shared content sequence adapter

-
- -
-
-pyams_content.shared.common.WfSharedContentWorkflowAdapter(context)
-

Shared content workflow adapter

-
- -
-
-pyams_content.shared.common.handle_cloned_shared_content(event)
-

Handle cloned object when a new version is created

-

Current principal is set as version creator, and is added to version -contributors if he is not the original content’s owner

-
- -
-
-pyams_content.shared.common.handle_content_types(event)
-

Check for content types to un-register

-
- -
-
-pyams_content.shared.common.handle_modified_shared_content(event)
-

Define content’s modifiers when content is modified

-
- -
-
-pyams_content.shared.common.register_content_type(content)
-

Register a new content type

-
- -
-
- - -