Commit 687f8b93 authored by Dan Pascu's avatar Dan Pascu

Renamed method argument

parent a6a374ce
...@@ -133,7 +133,7 @@ class PresencePublicationHandler(object): ...@@ -133,7 +133,7 @@ class PresencePublicationHandler(object):
return doc return doc
def build_offline_pidf(self, account, offline_note=None): def build_offline_pidf(self, account, note=None):
doc = pidf.PIDF(str(account.uri)) doc = pidf.PIDF(str(account.uri))
timestamp = ISOTimestamp.now() timestamp = ISOTimestamp.now()
...@@ -151,8 +151,8 @@ class PresencePublicationHandler(object): ...@@ -151,8 +151,8 @@ class PresencePublicationHandler(object):
service.contact = pidf.Contact(str(account.uri)) service.contact = pidf.Contact(str(account.uri))
service.capabilities = caps.ServiceCapabilities() service.capabilities = caps.ServiceCapabilities()
service.timestamp = pidf.ServiceTimestamp(timestamp) service.timestamp = pidf.ServiceTimestamp(timestamp)
if offline_note: if note:
service.notes.add(offline_note) service.notes.add(note)
doc.add(service) doc.add(service)
return doc return doc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment