Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/record.py
diff options
context:
space:
mode:
authorerikb <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)
commitcdfe509740cf2fe84f1bd09a5d0e0596f41a4168 (patch)
tree0a88b1536e80b464ea1babe09de458e92cf9bace /record.py
parent1cb1dade62e896698f622da6d05bb2612416ddab (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-xrecord.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/record.py b/record.py
index 2270ac3..f1b9962 100755
--- a/record.py
+++ b/record.py
@@ -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 ):