Changeset 2829 for pykota/trunk/bin/pkturnkey
- Timestamp:
- 04/04/06 11:16:53 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkturnkey
r2745 r2829 223 223 try : 224 224 from pysnmp.asn1.encoding.ber.error import TypeMismatchError 225 from pysnmp.mapping.udp.error import SnmpOverUdpError226 225 from pysnmp.mapping.udp.role import Manager 227 226 from pysnmp.proto.api import alpha … … 247 246 tsp.close() 248 247 249 def handleAnswer(whole Msg, notusedhere, req):248 def handleAnswer(wholemsg, notusedhere, req): 250 249 """Decodes and handles the SNMP answer.""" 251 250 ver = alpha.protoVersions[alpha.protoVersionId1] 252 251 rsp = ver.Message() 253 252 try : 254 rsp.berDecode(whole Msg)253 rsp.berDecode(wholemsg) 255 254 except TypeMismatchError, msg : 256 255 raise "No SNMP !" … … 364 363 """Intializes PyKota's database.""" 365 364 if not self.config.isAdmin : 366 raise PyKotaCommandLineError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], \365 raise PyKotaCommandLineError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], \ 367 366 _("You're not allowed to use this command.")) 368 367