--- 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'))