Update resource attributes
authortflorac@dagon.home
Sun, 30 Dec 2018 18:04:05 +0100
changeset 1201 dfa2d1fc5e37
parent 1200 5d223b06114d
child 1202 bbfe97a536f4
Update resource attributes
src/pyams_content/shared/resource/__init__.py
src/pyams_content/shared/resource/interfaces.py
--- a/src/pyams_content/shared/resource/__init__.py	Fri Dec 28 11:03:15 2018 +0100
+++ b/src/pyams_content/shared/resource/__init__.py	Sun Dec 30 18:04:05 2018 +0100
@@ -44,10 +44,13 @@
 
 @implementer(IResourceInfo)
 class ResourceInfo(Persistent, Contained):
-    """Resource persistent informations"""
+    """Resource persistent information"""
 
     original_country = FieldProperty(IResourceInfo['original_country'])
+    original_title = FieldProperty(IResourceInfo['original_title'])
     author = FieldProperty(IResourceInfo['author'])
+    translator = FieldProperty(IResourceInfo['translator'])
+    illustrator = FieldProperty(IResourceInfo['illustrator'])
     drawer = FieldProperty(IResourceInfo['drawer'])
     colourist = FieldProperty(IResourceInfo['colourist'])
     lettering = FieldProperty(IResourceInfo['lettering'])
--- a/src/pyams_content/shared/resource/interfaces.py	Fri Dec 28 11:03:15 2018 +0100
+++ b/src/pyams_content/shared/resource/interfaces.py	Sun Dec 30 18:04:05 2018 +0100
@@ -58,9 +58,18 @@
     original_country = TextLine(title=_("Original country"),
                                 required=False)
 
+    original_title = TextLine(title=_("Original title"),
+                              required=False)
+
     author = TextLine(title=_("Author"),
                       required=False)
 
+    translator = TextLine(title=_("Translator"),
+                          required=False)
+
+    illustrator = TextLine(title=_("Illustrator"),
+                           required=False)
+
     drawer = TextLine(title=_("Drawer"),
                       required=False)