Philipp Hörist pushed to branch master at gajim / python-nbxmpp


Commits:
9fe5483e by Philipp Hörist at 2019-12-09T20:08:15Z
JID: isDomain and isFull property

- - - - -


1 changed file:

- nbxmpp/protocol.py


Changes:

=====================================
nbxmpp/protocol.py
=====================================
@@ -897,6 +897,14 @@ class JID:
     def isBare(self):
         return self.node and self.domain and not self.resource
 
+    @property
+    def isDomain(self):
+        return self.domain and not self.node and not self.resource
+
+    @property
+    def isFull(self):
+        return self.domain and self.node and self.resource
+
     def __eq__(self, other):
         """
         Compare the JID to another instance or to string for equality



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/commit/9fe5483eb06a6fbf7c80eefd64b6b47988fbb6c1

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/commit/9fe5483eb06a6fbf7c80eefd64b6b47988fbb6c1
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to