message=("%s %s %s with etag=%s did not change (304)"%(notification.datetime,data.method,data.url,data.etag))
else:
message=("%s %s %s changed to etag=%s (%d bytes)"%(notification.datetime,data.method,data.url,data.etag,data.size))
self.log_xcap(notification,message)
def_LH_XCAPDocumentsDidChange(self,notification):
settings=SIPSimpleSettings()
ifnotsettings.logs.trace_xcap:
return
data=notification.data
forkinlist(data.notified_etags.keys()):
ifknotindata.documents:
message=("%s %s etag has changed on server to %s but is already stored locally"%(notification.datetime,data.notified_etags[k]['url'],data.notified_etags[k]['new_etag']))
else:
message=("%s %s etag has changed: %s -> %s"%(notification.datetime,data.notified_etags[k]['url'],data.notified_etags[k]['new_etag'],data.notified_etags[k]['previous_etag']))
message=("%s XCAP manager of account %s changed state from %s to %s"%(notification.datetime,notification.sender.account.id,notification.data.prev_state.capitalize(),notification.data.state.capitalize()))