--- a/src/pyams_content/shared/imagemap/interfaces/__init__.py Tue Sep 12 11:30:45 2017 +0200
+++ b/src/pyams_content/shared/imagemap/interfaces/__init__.py Tue Sep 12 16:40:44 2017 +0200
@@ -16,12 +16,14 @@
# import standard library
# import interfaces
+from pyams_content.component.paragraph.interfaces import IBaseParagraph
from pyams_content.shared.common.interfaces import ISharedTool, IWfSharedContent, ISharedContent
from zope.annotation.interfaces import IAttributeAnnotatable
# import packages
from pyams_content.shared.imagemap.schema import MapArea
from pyams_i18n.schema import I18nTextLineField, I18nImageField
+from pyams_sequence.schema import InternalReference
from pyams_utils.schema import PersistentDict
from zope.schema import Object, Choice
@@ -68,3 +70,14 @@
class IImageMap(ISharedContent):
"""Workflow managed image map interface"""
+
+
+class IImageMapParagraph(IBaseParagraph):
+ """Image map paragraph"""
+
+ reference = InternalReference(title=_("Internal reference"),
+ description=_("Reference to image map object"),
+ content_type=IMAGEMAP_CONTENT_TYPE)
+
+ def get_target(self, state=None):
+ """Get reference target"""