cc-4105: renamed file

This commit is contained in:
Rudi Grinberg 2012-07-24 17:26:48 -04:00
parent f044cd91e3
commit 53b9f29f7b
2 changed files with 5 additions and 4 deletions

View File

@ -14,14 +14,11 @@ class Manager(Loggable):
# TODO : get rid of config object being passed? It's not actually being
# used
def __init__(self,config):
self.wm = pyinotify.WatchManager()
# These two instance variables are assumed to be constant
self.watch_channel = 'watch'
self.organize_channel = 'organize'
self.watch_listener = StoreWatchListener(self.watch_channel)
self.organize = {
'organize_path' : None,
'store_path' : None,
@ -32,7 +29,6 @@ class Manager(Loggable):
# which the "organized" files go to, isn't changed.
'organizer' : None,
}
self.watched_directories = set([])
def __remove_watch(self,path):
@ -87,4 +83,7 @@ class Manager(Loggable):
% watch_dir)
def loop(self):
"""
block until we receive pyinotify events
"""
pyinotify.Notifier(self.wm).loop()

View File

@ -31,6 +31,8 @@ from api_clients import api_client as apc
# 9. Start the toucher thread that updates the last modified time of the index
# file as the program is running
# Rewrite to use manager.Manager
log = get_logger()
global_config = u'/path/to/global/config'
# MMConfig is a proxy around ConfigObj instances. it does not allow itself