# HG changeset patch # User Sylvain Thénault # Date 1249986069 -7200 # Node ID 7c583d02917b7ecf2f1689784ed90604cafef22c # Parent 30063071aee0db447e8ed70c5a4a27003057bd68 [vreg] explicit reset, no need to reload appobjects module on reloading because of schema changes diff -r 30063071aee0 -r 7c583d02917b 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():