diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-01 15:41:34 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-01 15:41:34 (GMT) |
commit | 1cb1dade62e896698f622da6d05bb2612416ddab (patch) | |
tree | de3dbbfa4e795d1a49ba67c408cec803528965f1 /recordtube.py | |
parent | 15d023fe330ccf0ec18f3276dbe96dd1f04880e9 (diff) |
Instance.keyHashPrintable
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@828 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'recordtube.py')
-rw-r--r-- | recordtube.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/recordtube.py b/recordtube.py index 885d743..9efe61f 100644 --- a/recordtube.py +++ b/recordtube.py @@ -5,6 +5,7 @@ from dbus.gobject_service import ExportedGObject import os from constants import Constants +from instance import Instance import record class RecordTube(ExportedGObject): @@ -41,7 +42,7 @@ class RecordTube(ExportedGObject): if sender == self.tube.get_unique_name(): record.Record.log.debug("_newRecdTubeCb: sender is my bus name, so ignore my own signal") return - elif (recorder == self.myHashKey): + elif (recorder == Instance.keyHashPrintable): record.Record.log.debug('_newRecdTubeCb: excuse me? you are asking me to share a photo with myself?') return @@ -57,10 +58,10 @@ class RecordTube(ExportedGObject): if sender == self.tube.get_unique_name(): record.Record.log.debug("_reqRecdTubeCb: sender is my bus name, so ignore my own signal") return - elif (whoWantsIt == self.myHashKey): + elif (whoWantsIt == Instance.keyHashPrintable): record.Record.log.debug('_reqRecdTubeCb: excuse me? you are asking me to share a photo with myself?') return - elif (whoTheyWantItFrom != self.myHashKey): + elif (whoTheyWantItFrom != Instance.keyHashPrintable): record.Record.log.debug('_reqRecdTubeCb: ive overhead someone wants a photo, but not from me') return @@ -93,10 +94,10 @@ class RecordTube(ExportedGObject): if sender == self.tube.get_unique_name(): record.Record.log.debug("_reqRecdTubeCb: sender is my bus name, so ignore my own signal") return - if (fromWho == self.myHashKey): + if (fromWho == Instance.keyHashPrintable): record.Record.log.debug('_getRecdTubeCb: i dont want bits from meself, thx anyway. schizophrenic?') return - if (sentTo != self.myHashKey): + if (sentTo != Instance.keyHashPrintable): record.Record.log.debug('_getRecdTubeCb: ive overhead someone sending bits, but not to me!') return @@ -112,10 +113,10 @@ class RecordTube(ExportedGObject): if sender == self.tube.get_unique_name(): record.Record.log.debug("_unavailableRecdTubeCb: sender is my bus name, so ignore my own signal") return - if (whoDoesntHaveIt == self.myHashKey): + if (whoDoesntHaveIt == Instance.keyHashPrintable): record.Record.log.debug('_unavailableRecdTubeCb: yes, i know i dont have it, i just told you/me/us.') return - if (whoAskedForIt != self.myHashKey): + if (whoAskedForIt != Instance.keyHashPrintable): record.Record.log.debug('_unavailableRecdTubeCb: ive overheard someone doesnt have a photo, but i didnt ask for that one anyways') return |