Mercurial > libervia-backend
comparison src/core/xmpp.py @ 2509:d485e9416493
core (memory/cache): common cache:
host has now a common_cache attribute for data which can be shared between profiles. client.cache is for private data
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 02 Mar 2018 17:40:09 +0100 |
parents | d6de69da3dd4 |
children | a201194fc461 |
comparison
equal
deleted
inserted
replaced
2508:4e5cc45e2be7 | 2509:d485e9416493 |
---|---|
521 def send(self, obj): | 521 def send(self, obj): |
522 # original send method accept string | 522 # original send method accept string |
523 # but we restrict to domish.Element to make trigger treatments easier | 523 # but we restrict to domish.Element to make trigger treatments easier |
524 assert isinstance(obj, domish.Element) | 524 assert isinstance(obj, domish.Element) |
525 # XXX: this trigger is the last one before sending stanza on wire | 525 # XXX: this trigger is the last one before sending stanza on wire |
526 # is it is intended for things like end 2 end encryption. | 526 # it is intended for things like end 2 end encryption. |
527 # *DO NOT* cancel (i.e. return False) without very good reason | 527 # *DO NOT* cancel (i.e. return False) without very good reason |
528 # (out of band transmission for instance). | 528 # (out of band transmission for instance). |
529 # e2e should have a priority of 0 here, and out of band transmission | 529 # e2e should have a priority of 0 here, and out of band transmission |
530 # a lower priority | 530 # a lower priority |
531 # FIXME: trigger not used yet, can be uncommented when e2e full stanza encryption is implemented | 531 # FIXME: trigger not used yet, can be uncommented when e2e full stanza encryption is implemented |