cc-4350: Possible fix.
This commit is contained in:
parent
272840eb5a
commit
0798d67b2d
|
@ -113,9 +113,9 @@ class BaseEvent(Loggable):
|
||||||
self._raw_event = evt
|
self._raw_event = evt
|
||||||
self.path = evt.path
|
self.path = evt.path
|
||||||
self.__class__ = evt.__class__
|
self.__class__ = evt.__class__
|
||||||
# We don't transfer the _pack_hook over to the new event
|
# Clean up old hook and transfer the new events hook
|
||||||
# TODO : perhaps we should call the old events pack_hook just to make
|
self.reset_hook()
|
||||||
# sure everything is done cleanly?
|
self.add_safe_pack_hook( evt._pack_hook )
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def assign_owner(self,req):
|
def assign_owner(self,req):
|
||||||
|
|
|
@ -172,6 +172,7 @@ class Metadata(Loggable):
|
||||||
return
|
return
|
||||||
# TODO : Simplify the way all of these rules are handled right not it's
|
# TODO : Simplify the way all of these rules are handled right not it's
|
||||||
# extremely unclear and needs to be refactored.
|
# extremely unclear and needs to be refactored.
|
||||||
|
if full_mutagen is None: full_mutagen = {}
|
||||||
self.__metadata = Metadata.airtime_dict(full_mutagen)
|
self.__metadata = Metadata.airtime_dict(full_mutagen)
|
||||||
# Now we extra the special values that are calculated from the mutagen
|
# Now we extra the special values that are calculated from the mutagen
|
||||||
# object itself:
|
# object itself:
|
||||||
|
|
Loading…
Reference in New Issue