documented some shitty parts of the code

This commit is contained in:
Rudi Grinberg 2012-08-27 15:00:11 -04:00
parent 7aba1dcebd
commit 589477c8fe
1 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,10 @@ class Organizer(ReportHandler,Loggable):
StoreWatchListener)
"""
# Commented out making this class a singleton because it's just a band aid
# for the real issue. The real issue being making multiple Organizer
# instances with pydispatch
#_instance = None
#def __new__(cls, channel, target_path, recorded_path):
#if cls._instance:
@ -41,7 +45,8 @@ class Organizer(ReportHandler,Loggable):
self.target_path)
"""
# Only handle this event type
assert isinstance(event, OrganizeFile) == True
assert isinstance(event, OrganizeFile), \
"Organizer can only handle OrganizeFile events.Given '%s'" % event
try:
# We must select the target_path based on whether file was recorded
# by airtime or not.