Ticket #20 (closed enhancement: invalid)

Opened 4 months ago

Last modified 3 months ago

Addendum to ticket #19

Reported by: guest Assigned to: sylvain
Priority: minor Milestone: headstock-0.1.0
Component: headstock Version: Current
Keywords: presence Cc:

Description

I meant to put this down with ticket 19, but forgot. :/

This is an enhancement to the presence class that will make it show the type as available in a repr.

Index: headstock/api/contact.py =================================================================== --- headstock/api/contact.py (revision 745) +++ headstock/api/contact.py (working copy) @@ -22,7 +22,7 @@

self.foreign = []

def repr(self):

- return '<Presence %s (%s) at %s>' % (str(self.from_jid), self.type, hex(id(self))) + return '<Presence %s (%s) at %s>' % (str(self.from_jid), self.type or 'available', hex(id(self)))

@staticmethod def from_element(e):

Change History

08/12/08 02:43:11 changed by sylvain

  • status changed from new to closed.
  • resolution set to invalid.