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

Renamed method argument

parent a6a374ce
......@@ -133,7 +133,7 @@ class PresencePublicationHandler(object):
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))
timestamp = ISOTimestamp.now()
......@@ -151,8 +151,8 @@ class PresencePublicationHandler(object):
service.contact = pidf.Contact(str(account.uri))
service.capabilities = caps.ServiceCapabilities()
service.timestamp = pidf.ServiceTimestamp(timestamp)
if offline_note:
service.notes.add(offline_note)
if note:
service.notes.add(note)
doc.add(service)
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