Typo in server autoreload class
This commit is contained in:
parent
36296d459e
commit
f8706c31e0
|
@ -130,14 +130,14 @@ class AutoReload(object):
|
|||
self.handler = EventHandler(self)
|
||||
self.notifier = pyinotify.Notifier(self.wm, self.handler, timeout=0)
|
||||
mask = pyinotify.IN_MODIFY | pyinotify.IN_CREATE # IN_MOVED_FROM, IN_MOVED_TO ?
|
||||
for path in openerp.modules.modules.ad_paths:
|
||||
for path in openerp.modules.module.ad_paths:
|
||||
_logger.info('Watching addons folder %s', path)
|
||||
self.wm.add_watch(path, mask, rec=True)
|
||||
|
||||
def process_data(self, files):
|
||||
xml_files = [i for i in files if i.endswith('.xml')]
|
||||
for i in xml_files:
|
||||
for path in openerp.modules.modules.ad_paths:
|
||||
for path in openerp.modules.module.ad_paths:
|
||||
if i.startswith(path):
|
||||
# find out wich addons path the file belongs to
|
||||
# and extract it's module name
|
||||
|
|
Loading…
Reference in New Issue