--- a/src/pyams_content/shared/resource/__init__.py Fri Jan 04 17:15:18 2019 +0100
+++ b/src/pyams_content/shared/resource/__init__.py Sun Jan 06 18:39:25 2019 +0100
@@ -63,13 +63,13 @@
series = FieldProperty(IResourceInfo['series'])
volume = FieldProperty(IResourceInfo['volume'])
format = FieldProperty(IResourceInfo['format'])
+ nb_pages = FieldProperty(IResourceInfo['nb_pages'])
release_year = FieldProperty(IResourceInfo['release_year'])
awards = FieldProperty(IResourceInfo['awards'])
- nb_pages = FieldProperty(IResourceInfo['nb_pages'])
editor_reference = FieldProperty(IResourceInfo['editor_reference'])
isbn_number = FieldProperty(IResourceInfo['isbn_number'])
+ price = FieldProperty(IResourceInfo['price'])
source_url = FieldProperty(IResourceInfo['source_url'])
- price = FieldProperty(IResourceInfo['price'])
summary = FieldProperty(IResourceInfo['summary'])
synopsis = FieldProperty(IResourceInfo['synopsis'])
publisher_words = FieldProperty(IResourceInfo['publisher_words'])
--- a/src/pyams_content/shared/resource/interfaces.py Fri Jan 04 17:15:18 2019 +0100
+++ b/src/pyams_content/shared/resource/interfaces.py Sun Jan 06 18:39:25 2019 +0100
@@ -103,6 +103,10 @@
format = TextLine(title=_("Format"),
required=False)
+ nb_pages = Int(title=_("Nb pages"),
+ min=0,
+ required=False)
+
release_year = Choice(title=_("Release year"),
values=range(datetime.today().year, 1970, -1),
required=False)
@@ -110,24 +114,20 @@
awards = I18nTextField(title=_("Awards"),
required=False)
- nb_pages = Int(title=_("Nb pages"),
- min=0,
- required=False)
-
editor_reference = TextLine(title=_("Editor reference"),
required=False)
isbn_number = TextLine(title=_("ISBN number"),
required=False)
+ price = Float(title=_("Price"),
+ min=0.0,
+ required=False)
+
source_url = URI(title=_("Source URI"),
description=_("External URL used to get more information about resource"),
required=False)
- price = Float(title=_("Price"),
- min=0.0,
- required=False)
-
summary = I18nHTMLField(title=_("Summary"),
required=False)