equal
deleted
inserted
replaced
15 |
15 |
16 # import standard library |
16 # import standard library |
17 |
17 |
18 # import interfaces |
18 # import interfaces |
19 from pyams_content.component.association.interfaces import IAssociationTarget, IAssociationItem |
19 from pyams_content.component.association.interfaces import IAssociationTarget, IAssociationItem |
|
20 from pyams_content.reference.pictograms.interfaces import SELECTED_PICTOGRAM_VOCABULARY |
20 from pyams_sequence.interfaces import IInternalReference |
21 from pyams_sequence.interfaces import IInternalReference |
21 |
22 |
22 # import packages |
23 # import packages |
23 from pyams_i18n.schema import I18nTextLineField, I18nTextField |
24 from pyams_i18n.schema import I18nTextLineField, I18nTextField |
24 from pyams_utils.schema import MailAddressField |
25 from pyams_utils.schema import MailAddressField |
|
26 from zope.interface import Attribute |
25 from zope.schema import Choice, TextLine, URI |
27 from zope.schema import Choice, TextLine, URI |
26 |
28 |
27 from pyams_content import _ |
29 from pyams_content import _ |
28 |
30 |
29 |
31 |
35 required=False) |
37 required=False) |
36 |
38 |
37 description = I18nTextField(title=_("Description"), |
39 description = I18nTextField(title=_("Description"), |
38 description=_("Link description displayed by front-office template"), |
40 description=_("Link description displayed by front-office template"), |
39 required=False) |
41 required=False) |
|
42 |
|
43 pictogram_name = Choice(title=_("Pictogram"), |
|
44 description=_("Name of the pictogram associated with this link"), |
|
45 required=False, |
|
46 vocabulary=SELECTED_PICTOGRAM_VOCABULARY) |
|
47 |
|
48 pictogram = Attribute("Selected pictogram object") |
40 |
49 |
41 def get_editor_url(self): |
50 def get_editor_url(self): |
42 """Get URL for use in HTML editor""" |
51 """Get URL for use in HTML editor""" |
43 |
52 |
44 |
53 |