Changeset 766
- Timestamp:
- 08/12/08 02:32:48 (3 months ago)
- Files:
-
- oss/headstock/headstock/api/im.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
oss/headstock/headstock/api/im.py
r753 r766 40 40 self.lang = lang 41 41 42 def __str__(self): 43 return str(self.content or '') 44 45 def __unicode__(self): 46 return self.context or u'' 47 42 48 def __repr__(self): 43 49 return '<Subject at %s>' % (hex(id(self)),) … … 49 55 def __repr__(self): 50 56 return '<Thread at %s>' % (hex(id(self)),) 57 58 def __str__(self): 59 return str(self.text or '') 60 61 def __unicode__(self): 62 return self.text or u'' 51 63 52 64 class Event(object): … … 154 166 155 167 if m.thread: 156 E(u'thread', content= m.thread,168 E(u'thread', content=unicode(m.thread), 157 169 namespace=XMPP_CLIENT_NS, parent=e) 158 170
