removed file mediator because it seems to be useless and incompatible with saas

This commit is contained in:
Rudi Grinberg 2012-11-20 14:44:24 -05:00
parent 58d888a59f
commit 95e757a52c
2 changed files with 3 additions and 1 deletions

View file

@ -191,7 +191,7 @@ class AirtimeMessageReceiver(Loggable):
# request that we'd normally get form pyinotify. But right
# now event contractor would take care of this sort of
# thing anyway so this might not be necessary after all
user().file_mediator.ignore(msg['filepath'])
#user().file_mediator.ignore(msg['filepath'])
os.unlink(msg['filepath'])
# Verify deletion:
if not os.path.exists(msg['filepath']):

View file

@ -17,6 +17,8 @@ from media.saas.thread import getsig, user
# OrganizeListener(signal='watch_signal') <= right
class FileMediator(Loggable):
# TODO : this class is not actually used. remove all references to it
# everywhere (including tests).
""" FileMediator is used an intermediate mechanism that filters out
certain events. """
def __init__(self) : self.ignored_set = set([]) # for paths only