# HG changeset patch # User Thierry Florac # Date 1519900557 -3600 # Node ID 6ad2cc0eab55810dc32446f429d048bef2ee3023 # Parent e1d40ed27899415d8eba43c9b895bec459b14a92 Updated fields order diff -r e1d40ed27899 -r 6ad2cc0eab55 src/pyams_content/component/illustration/__init__.py --- a/src/pyams_content/component/illustration/__init__.py Thu Feb 22 17:04:26 2018 +0100 +++ b/src/pyams_content/component/illustration/__init__.py Thu Mar 01 11:35:57 2018 +0100 @@ -56,8 +56,8 @@ author = FieldProperty(IIllustration['author']) _data = I18nFileProperty(IIllustration['data']) filename = FieldProperty(IIllustration['filename']) + language = FieldProperty(IIllustration['language']) renderer = FieldProperty(IIllustration['renderer']) - language = FieldProperty(IIllustration['language']) @property def data(self): diff -r e1d40ed27899 -r 6ad2cc0eab55 src/pyams_content/component/illustration/interfaces/__init__.py --- a/src/pyams_content/component/illustration/interfaces/__init__.py Thu Feb 22 17:04:26 2018 +0100 +++ b/src/pyams_content/component/illustration/interfaces/__init__.py Thu Mar 01 11:35:57 2018 +0100 @@ -60,16 +60,16 @@ description=_("Name under which the file will be saved"), required=False) + language = Choice(title=_("Language"), + description=_("File's content language"), + vocabulary="PyAMS base languages", + required=False) + renderer = Choice(title=_("Illustration template"), description=_("Presentation template used for illustration"), vocabulary='PyAMS illustration renderers', default='hidden') - language = Choice(title=_("Language"), - description=_("File's content language"), - vocabulary="PyAMS base languages", - required=False) - class IIllustrationTarget(IAttributeAnnotatable): """Illustration target marker interface""" @@ -89,12 +89,12 @@ description=_("Name under which the file will be saved"), required=False) + language = Choice(title=_("Language"), + description=_("File's content language"), + vocabulary="PyAMS base languages", + required=False) + renderer = Choice(title=_("Illustration template"), description=_("Presentation template used for illustration"), vocabulary='PyAMS illustration renderers', default='hidden') - - language = Choice(title=_("Language"), - description=_("File's content language"), - vocabulary="PyAMS base languages", - required=False)