[vreg] explicit reset, no need to reload appobjects module on reloading because of schema changes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 11 Aug 2009 12:21:09 +0200
changeset 2761 7c583d02917b
parent 2760 30063071aee0
child 2762 b1bb33b37992
[vreg] explicit reset, no need to reload appobjects module on reloading because of schema changes
cwvreg.py
--- a/cwvreg.py	Tue Aug 11 12:20:13 2009 +0200
+++ b/cwvreg.py	Tue Aug 11 12:21:09 2009 +0200
@@ -277,7 +277,9 @@
         self.schema = schema
         clear_cache(self, 'rqlhelper')
         # now we can load application's web objects
-        self.register_objects(self.config.vregistry_path())
+        searchpath = self.config.vregistry_path()
+        self.reset(searchpath, force_reload=False)
+        self.register_objects(searchpath, force_reload=False)
         # map lowered entity type names to their actual name
         self.case_insensitive_etypes = {}
         for etype in self.schema.entities():