BIND 10 trac1914, updated. 8a33e4abf487623ef3367e5ea85c49b7e9086c94 [1924] Use the constants in python group_sendmsg
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Feb 4 15:50:16 UTC 2013
The branch, trac1914 has been updated
via 8a33e4abf487623ef3367e5ea85c49b7e9086c94 (commit)
from efb422b40e2d7068e17866fcefe557e54deee572 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8a33e4abf487623ef3367e5ea85c49b7e9086c94
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Mon Feb 4 17:48:55 2013 +0100
[1924] Use the constants in python group_sendmsg
-----------------------------------------------------------------------
Summary of changes:
src/lib/python/isc/cc/session.py | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/cc/session.py b/src/lib/python/isc/cc/session.py
index b6060ee..8ea7fca 100644
--- a/src/lib/python/isc/cc/session.py
+++ b/src/lib/python/isc/cc/session.py
@@ -22,6 +22,7 @@ import threading
import bind10_config
import isc.cc.message
+from isc.util.common_defs import *
class ProtocolError(Exception): pass
class NetworkError(Exception): pass
@@ -260,13 +261,13 @@ class Session:
want_answer=False):
seq = self._next_sequence()
self.sendmsg({
- "type": "send",
- "from": self._lname,
- "to": to,
- "group": group,
- "instance": instance,
- "seq": seq,
- "want_answer": want_answer
+ CC_HEADER_TYPE: CC_COMMAND_SEND,
+ CC_HEADER_FROM: self._lname,
+ CC_HEADER_TO: to,
+ CC_HEADER_GROUP: group,
+ CC_HEADER_INSTANCE: instance,
+ CC_HEADER_SEQ: seq,
+ CC_HEADER_WANT_ANSWER: want_answer
}, isc.cc.message.to_wire(msg))
return seq
More information about the bind10-changes
mailing list