Updated creation form data extraction
authorThierry Florac <thierry.florac@onf.fr>
Wed, 07 Mar 2018 16:15:48 +0100
changeset 61 651395ef80b5
parent 60 d65ad9b7367a
child 62 bee8ce78226a
Updated creation form data extraction
src/pyams_portal/zmi/layout.py
--- a/src/pyams_portal/zmi/layout.py	Wed Feb 07 18:03:19 2018 +0100
+++ b/src/pyams_portal/zmi/layout.py	Wed Mar 07 16:15:48 2018 +0100
@@ -233,6 +233,7 @@
             self.widgets['row_id'].mode = HIDDEN_MODE
 
     def createAndAdd(self, data):
+        data = data.get(self, data)
         config = IPortalTemplateConfiguration(self.context)
         return config.add_slot(data.get('name'), data.get('row_id'))
 
@@ -389,6 +390,7 @@
     edit_permission = None
 
     def createAndAdd(self, data):
+        data = data.get(self, data)
         config = IPortalTemplateConfiguration(self.context)
         return config.add_portlet(data.get('portlet_name'), data.get('slot_name'))