equal
deleted
inserted
replaced
14 |
14 |
15 |
15 |
16 # import standard library |
16 # import standard library |
17 |
17 |
18 # import interfaces |
18 # import interfaces |
|
19 from pyams_content.component.paragraph.interfaces import IBaseParagraph |
19 from pyams_content.shared.common.interfaces import ISharedTool, IWfSharedContent, ISharedContent |
20 from pyams_content.shared.common.interfaces import ISharedTool, IWfSharedContent, ISharedContent |
20 from zope.annotation.interfaces import IAttributeAnnotatable |
21 from zope.annotation.interfaces import IAttributeAnnotatable |
21 |
22 |
22 # import packages |
23 # import packages |
23 from pyams_content.shared.imagemap.schema import MapArea |
24 from pyams_content.shared.imagemap.schema import MapArea |
24 from pyams_i18n.schema import I18nTextLineField, I18nImageField |
25 from pyams_i18n.schema import I18nTextLineField, I18nImageField |
|
26 from pyams_sequence.schema import InternalReference |
25 from pyams_utils.schema import PersistentDict |
27 from pyams_utils.schema import PersistentDict |
26 from zope.schema import Object, Choice |
28 from zope.schema import Object, Choice |
27 |
29 |
28 from pyams_content import _ |
30 from pyams_content import _ |
29 |
31 |
66 required=False) |
68 required=False) |
67 |
69 |
68 |
70 |
69 class IImageMap(ISharedContent): |
71 class IImageMap(ISharedContent): |
70 """Workflow managed image map interface""" |
72 """Workflow managed image map interface""" |
|
73 |
|
74 |
|
75 class IImageMapParagraph(IBaseParagraph): |
|
76 """Image map paragraph""" |
|
77 |
|
78 reference = InternalReference(title=_("Internal reference"), |
|
79 description=_("Reference to image map object"), |
|
80 content_type=IMAGEMAP_CONTENT_TYPE) |
|
81 |
|
82 def get_target(self, state=None): |
|
83 """Get reference target""" |