Commit 50ccec74 authored by Jérome Perrin's avatar Jérome Perrin

dict.from_keys assign the same instance to all values, so use the old way



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10260 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f45b970b
......@@ -353,7 +353,10 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
self.title = title
self.row_length = 4
self.group_list = ["left", "right", "center", "bottom", "hidden"]
self.groups = dict.fromkeys(self.group_list, [])
groups = {}
for group in self.group_list:
groups[group] = []
self.groups = groups
# Proxy method to PageTemplate
def __call__(self, *args, **kwargs):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment