This commit is contained in:
Christophe Benz 2010-11-19 12:09:35 +01:00 committed by Romain Bignon
commit e5f0a3cca6

View file

@ -69,7 +69,7 @@ class Message(CapBaseObject):
@property @property
def full_id(self): def full_id(self):
return '%s.%s' % (self.thread.id, self.id) if thread else self.id return '%s.%s' % (self.thread.id, self.id) if self.thread else self.id
@property @property
def full_parent_id(self): def full_parent_id(self):
@ -80,7 +80,7 @@ class Message(CapBaseObject):
elif self._parent_id is NotLoaded: elif self._parent_id is NotLoaded:
return NotLoaded return NotLoaded
else: else:
return '%s.%s' % (self.thread.id, self._parent_id) if thread else self._parent_id return '%s.%s' % (self.thread.id, self._parent_id) if self.thread else self._parent_id
def __eq__(self, msg): def __eq__(self, msg):
if self.thread: if self.thread: