Re-add support for special case of 'presence' expiry value.

This commit is contained in:
Lance Stout 2012-03-16 23:42:34 -07:00
parent 0c24fbdb06
commit ab2e43d052

View file

@ -121,6 +121,8 @@ class EventSubscription(ElementBase):
def get_expiry(self):
expiry = self._get_attr('expiry')
if expiry.lower() == 'presence':
return expiry
return xep_0082.parse(expiry)
def set_expiry(self, value):