src/pyams_content/component/paragraph/__init__.py
changeset 1398 fc32ec8a8f53
parent 1128 1be970640518
equal deleted inserted replaced
1397:d05fc6aa4217 1398:fc32ec8a8f53
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
    10 # FOR A PARTICULAR PURPOSE.
    10 # FOR A PARTICULAR PURPOSE.
    11 #
    11 #
    12 
    12 
    13 __docformat__ = 'restructuredtext'
       
    14 
       
    15 from persistent import Persistent
    13 from persistent import Persistent
    16 from pyramid.events import subscriber
    14 from pyramid.events import subscriber
    17 from pyramid.threadlocal import get_current_registry
    15 from pyramid.threadlocal import get_current_registry
    18 from zope.container.contained import Contained
    16 from zope.container.contained import Contained
    19 from zope.interface import implementer
    17 from zope.interface import implementer
    20 from zope.lifecycleevent import ObjectModifiedEvent
    18 from zope.lifecycleevent import ObjectModifiedEvent
    21 from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectModifiedEvent, IObjectRemovedEvent
    19 from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectModifiedEvent, \
       
    20     IObjectRemovedEvent
    22 from zope.schema.fieldproperty import FieldProperty
    21 from zope.schema.fieldproperty import FieldProperty
    23 from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
    22 from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
    24 
    23 
    25 from pyams_content.component.paragraph.interfaces import CONTENT_PARAGRAPHS_VOCABULARY, IBaseParagraph, \
    24 from pyams_content.component.paragraph.interfaces import CONTENT_PARAGRAPHS_VOCABULARY, \
    26     IParagraphContainer, IParagraphContainerTarget, IParagraphFactory, IParagraphFactorySettings, IParagraphTitle, \
    25     IBaseParagraph, IParagraphContainer, IParagraphContainerTarget, IParagraphFactory, \
    27     PARAGRAPH_FACTORIES_VOCABULARY
    26     IParagraphFactorySettings, IParagraphTitle, PARAGRAPH_FACTORIES_VOCABULARY
    28 from pyams_content.features.checker import BaseContentChecker
    27 from pyams_content.features.checker import BaseContentChecker
    29 from pyams_content.features.preview.interfaces import IPreviewTarget
    28 from pyams_content.features.preview.interfaces import IPreviewTarget
    30 from pyams_content.features.renderer import RenderedContentMixin
    29 from pyams_content.features.renderer import RenderedContentMixin
    31 from pyams_content.shared.common.interfaces import IWfSharedContent
    30 from pyams_content.shared.common.interfaces import IWfSharedContent
    32 from pyams_form.interfaces.form import IFormContextPermissionChecker
    31 from pyams_form.interfaces.form import IFormContextPermissionChecker
    36 from pyams_utils.registry import query_utility
    35 from pyams_utils.registry import query_utility
    37 from pyams_utils.request import check_request
    36 from pyams_utils.request import check_request
    38 from pyams_utils.traversing import get_parent
    37 from pyams_utils.traversing import get_parent
    39 from pyams_utils.vocabulary import vocabulary_config
    38 from pyams_utils.vocabulary import vocabulary_config
    40 from pyams_workflow.interfaces import IWorkflowState
    39 from pyams_workflow.interfaces import IWorkflowState
       
    40 
       
    41 
       
    42 __docformat__ = 'restructuredtext'
    41 
    43 
    42 
    44 
    43 #
    45 #
    44 # Auto-creation of default paragraphs
    46 # Auto-creation of default paragraphs
    45 #
    47 #