[uicfg] fix reloading pb with the indexview_etype_section
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 26 Jan 2010 10:27:52 +0100
changeset 4355 b50dd952cb8d
parent 4354 30f745305997
child 4356 8496a79aed0a
[uicfg] fix reloading pb with the indexview_etype_section
web/uicfg.py
--- a/web/uicfg.py	Tue Jan 26 10:26:51 2010 +0100
+++ b/web/uicfg.py	Tue Jan 26 10:27:52 2010 +0100
@@ -191,8 +191,10 @@
     def __init__(self, *args, **kwargs):
         super(InitializableDict, self).__init__(*args, **kwargs)
         register_rtag(self)
+        self.__defaults = dict(self)
 
     def init(self, schema, check=True):
+        self.update(self.__defaults)
         for eschema in schema.entities():
             if eschema.final:
                 continue