diff options
author | Rob Austein <sra@hactrn.net> | 2009-07-04 20:24:08 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-07-04 20:24:08 +0000 |
commit | 9893aed036a090f3c0d88cb09232811a21cff40d (patch) | |
tree | 266ec893fe0b5c59b6885dac9b733b5ba12cc5b2 /rpkid/rpki/xml_utils.py | |
parent | 255b252f3461470925f2ad58eadc75b07885dffa (diff) |
More msg.type cleanup
svn path=/rpkid/irbe-setup.py; revision=2573
Diffstat (limited to 'rpkid/rpki/xml_utils.py')
-rw-r--r-- | rpkid/rpki/xml_utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rpkid/rpki/xml_utils.py b/rpkid/rpki/xml_utils.py index 9e4aa265..6bcd03c8 100644 --- a/rpkid/rpki/xml_utils.py +++ b/rpkid/rpki/xml_utils.py @@ -429,3 +429,11 @@ class msg(list): self = cls(*args) self.type = "reply" return self + + def is_query(self): + """Is this msg a query?""" + return self.type == "query" + + def is_reply(self): + """Is this msg a reply?""" + return self.type == "reply" |