vregistry.py
changeset 5752 b0bb553e3be4
parent 5696 98d390c28edb
parent 5748 487ab6ac90cc
child 6014 a5e22657f6f4
--- a/vregistry.py	Mon Jun 14 12:13:46 2010 +0200
+++ b/vregistry.py	Tue Jun 15 18:16:19 2010 +0200
@@ -404,11 +404,11 @@
         self._loadedmods = {}
         return filemods
 
-    def register_objects(self, path, force_reload=False, extrapath=None):
+    def register_objects(self, path, extrapath=None):
         # load views from each directory in the instance's path
         filemods = self.init_registration(path, extrapath)
         for filepath, modname in filemods:
-            self.load_file(filepath, modname, force_reload)
+            self.load_file(filepath, modname)
         self.initialization_completed()
 
     def initialization_completed(self):
@@ -446,7 +446,7 @@
                     return True
         return False
 
-    def load_file(self, filepath, modname, force_reload=False):
+    def load_file(self, filepath, modname):
         """load app objects from a python file"""
         from logilab.common.modutils import load_module_from_name
         if modname in self._loadedmods:
@@ -463,7 +463,7 @@
         # module
         self._lastmodifs[filepath] = mdate
         # load the module
-        module = load_module_from_name(modname, use_sys=not force_reload)
+        module = load_module_from_name(modname)
         self.load_module(module)
 
     def load_module(self, module):