diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-01 16:09:46 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-01 16:09:46 (GMT) |
commit | cdfe509740cf2fe84f1bd09a5d0e0596f41a4168 (patch) | |
tree | 0a88b1536e80b464ea1babe09de458e92cf9bace /record.py | |
parent | 1cb1dade62e896698f622da6d05bb2612416ddab (diff) |
fixes
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@829 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'record.py')
-rwxr-xr-x | record.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -25,6 +25,7 @@ import shutil import telepathy import telepathy.client import logging +import xml.dom.minidom from sugar.activity import activity from sugar.presence import presenceservice @@ -276,24 +277,24 @@ class Record(activity.Activity): def _newRecdCb( self, objectThatSentTheSignal, recorder, xmlString ): - self.__class__.log.debug('_newRecdCb') + self.__class__.log.debug('_newRecdCb: ' + str(xmlString)) dom = None try: dom = xml.dom.minidom.parseString(xmlString) except: - self._logger.debug('Unable to parse xml from the mesh. What kind of photo did %s take?!', recorder) + self.__class__.log.error('Unable to parse xml from the mesh.') if (dom == None): return recd = Recorded() - recd = self.m.fillRecdFromNode( recd, dom.documentElement ) + recd = serialize.fillRecdFromNode( recd, dom.documentElement ) if (recd != None): self.__class__.log.debug('_newRecdCb: adding new recd thumb') recd.buddy = True recd.downloadedFromBuddy = False self.m.addMeshRecd( recd ) else: - self.__class__.log.debug('_newRecdCb: recd is None, unable to parse XML') + self.__class__.log.debug('_newRecdCb: recd is None. Unable to parse XML') def requestMeshDownload( self, recd ): |