diff options
author | elie <elie> | 2011-03-15 17:34:51 +0000 |
---|---|---|
committer | elie <elie> | 2011-03-15 17:34:51 +0000 |
commit | 1413b4bacdb06dd842fe55f40fd287199806f523 (patch) | |
tree | 120908d866a7f6270e682b59c2091250736867d0 | |
parent | 35cd4782b801962d8c392a97853fdd41f2103f11 (diff) | |
download | pysnmp-git-1413b4bacdb06dd842fe55f40fd287199806f523.tar.gz |
CommandGenerator should have access to mibViewController instance
-rw-r--r-- | pysnmp/hlapi/asyncore/cmdgen.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pysnmp/hlapi/asyncore/cmdgen.py b/pysnmp/hlapi/asyncore/cmdgen.py index e4d20070..64623c24 100644 --- a/pysnmp/hlapi/asyncore/cmdgen.py +++ b/pysnmp/hlapi/asyncore/cmdgen.py @@ -337,6 +337,10 @@ class CommandGenerator: self.__asynCmdGen = AsynCommandGenerator(snmpEngine) else: self.__asynCmdGen = asynCmdGen + + # compatibility attributes + self.snmpEngine = self.__asynCmdGen.snmpEngine + self.mibViewController = self.__asynCmdGen.mibViewController def getCmd(self, authData, transportTarget, *varNames): def __cbFun( |