--- a/vregistry.py Tue Aug 04 18:44:24 2009 +0200
+++ b/vregistry.py Tue Aug 04 18:58:38 2009 +0200
@@ -35,13 +35,6 @@
RegistryOutOfDate)
from cubicweb.appobject import AppObject
-# XXX depending on cubicweb.web is ugly, we should deal with uicfg
-# reset with a good old event / callback system
-try:
- from cubicweb.web import uicfg
-except ImportError: # cubicweb.web not installed
- uicfg = None
-
def _toload_info(path, extrapath, _toload=None):
"""return a dictionary of <modname>: <modpath> and an ordered list of
(file, module name) to load
@@ -216,12 +209,6 @@
def reset(self, force_reload=None):
self.clear()
self._lastmodifs = {}
- # don't reload uicfg when appobjects modules won't be reloaded as well
- if uicfg is not None:
- if force_reload is None:
- force_reload = self.config.mode == 'dev'
- if force_reload:
- reload(uicfg)
def __getitem__(self, name):
"""return the registry (dictionary of class objects) associated to