src/pyams_content/component/illustration/__init__.py
branchdev-dc
changeset 932 8e9a1496c2ba
parent 694 4541a452fd4c
child 936 2b31cde8c028
equal deleted inserted replaced
931:a2f3b82f93c3 932:8e9a1496c2ba
    50 @implementer(IBasicIllustration)
    50 @implementer(IBasicIllustration)
    51 @factory_config(provided=IBasicIllustration)
    51 @factory_config(provided=IBasicIllustration)
    52 class BasicIllustration(Persistent, Contained):
    52 class BasicIllustration(Persistent, Contained):
    53     """Illustration persistent class"""
    53     """Illustration persistent class"""
    54 
    54 
    55     _data = I18nFileProperty(IIllustration['data'])
    55     _data = I18nFileProperty(IBasicIllustration['data'])
    56     title = FieldProperty(IIllustration['title'])
    56     title = FieldProperty(IBasicIllustration['title'])
    57     alt_title = FieldProperty(IIllustration['alt_title'])
    57     alt_title = FieldProperty(IBasicIllustration['alt_title'])
       
    58     author = FieldProperty(IBasicIllustration['author'])
    58 
    59 
    59     @property
    60     @property
    60     def data(self):
    61     def data(self):
    61         return self._data
    62         return self._data
    62 
    63 
    92 @factory_config(provided=IIllustration)
    93 @factory_config(provided=IIllustration)
    93 class Illustration(RenderedContentMixin, BasicIllustration):
    94 class Illustration(RenderedContentMixin, BasicIllustration):
    94     """Illustration persistent class"""
    95     """Illustration persistent class"""
    95 
    96 
    96     description = FieldProperty(IIllustration['description'])
    97     description = FieldProperty(IIllustration['description'])
    97     author = FieldProperty(IIllustration['author'])
       
    98     renderer = FieldProperty(IIllustration['renderer'])
    98     renderer = FieldProperty(IIllustration['renderer'])
    99 
    99 
   100 
   100 
   101 @adapter_config(context=IIllustrationTarget, provides=IIllustration)
   101 @adapter_config(context=IIllustrationTarget, provides=IIllustration)
   102 def illustration_factory(context):
   102 def illustration_factory(context):