equal
deleted
inserted
replaced
16 # import standard library |
16 # import standard library |
17 |
17 |
18 # import interfaces |
18 # import interfaces |
19 |
19 |
20 # import packages |
20 # import packages |
21 from zope.interface import Interface |
21 from zope.interface import Interface, Attribute |
22 from zope.schema import Bool, Choice |
22 from zope.schema import Bool, Choice |
23 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm |
23 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm |
24 |
24 |
25 from pyams_default_theme import _ |
25 from pyams_default_theme import _ |
26 |
26 |
45 photo_position = Choice(title=_("Photo position"), |
45 photo_position = Choice(title=_("Photo position"), |
46 required=False, |
46 required=False, |
47 vocabulary=CONTENT_POSITIONS_VOCABULARY, |
47 vocabulary=CONTENT_POSITIONS_VOCABULARY, |
48 default='left') |
48 default='left') |
49 |
49 |
50 def can_display_photo(self): |
50 can_display_photo = Attribute("Check if photo can be displayed") |
51 """Check if photo can be displayed""" |
|
52 |
51 |
53 display_map = Bool(title=_("Show location map?"), |
52 display_map = Bool(title=_("Show location map?"), |
54 description=_("If 'no', location map will not be displayed"), |
53 description=_("If 'no', location map will not be displayed"), |
55 required=True, |
54 required=True, |
56 default=True) |
55 default=True) |
58 map_position = Choice(title=_("Map position"), |
57 map_position = Choice(title=_("Map position"), |
59 required=False, |
58 required=False, |
60 vocabulary=CONTENT_POSITIONS_VOCABULARY, |
59 vocabulary=CONTENT_POSITIONS_VOCABULARY, |
61 default='right') |
60 default='right') |
62 |
61 |
63 def can_display_map(self): |
62 can_display_map = Attribute("Check if location map can be displayed") |
64 """Check if location map can be displayed""" |
|