@@ -49,11 +49,11 @@ def _initVars(self, regKey, regValue, regType=None, regData=None, parse=False):
4949 def _createLocalBatchFile (self ):
5050 self ._batPathFp = open (self ._batPathLocal , "w" )
5151
52- if self .__operation == "read" :
52+ if self ._operation == "read" :
5353 lines = self ._batRead
54- elif self .__operation == "add" :
54+ elif self ._operation == "add" :
5555 lines = self ._batAdd
56- elif self .__operation == "delete" :
56+ elif self ._operation == "delete" :
5757 lines = self ._batDel
5858
5959 for line in lines :
@@ -70,9 +70,9 @@ def _createRemoteBatchFile(self):
7070 os .unlink (self ._batPathLocal )
7171
7272 def readRegKey (self , regKey , regValue , parse = False ):
73- self .__operation = "read"
73+ self ._operation = "read"
7474
75- self ._initVars (regKey , regValue , parse = parse )
75+ Registry ._initVars (self , regKey , regValue , parse = parse )
7676 self ._createRemoteBatchFile ()
7777
7878 logger .debug ("reading registry key '%s' value '%s'" % (regKey , regValue ))
@@ -90,9 +90,9 @@ def readRegKey(self, regKey, regValue, parse=False):
9090 return data
9191
9292 def addRegKey (self , regKey , regValue , regType , regData ):
93- self .__operation = "add"
93+ self ._operation = "add"
9494
95- self ._initVars (regKey , regValue , regType , regData )
95+ Registry ._initVars (self , regKey , regValue , regType , regData )
9696 self ._createRemoteBatchFile ()
9797
9898 debugMsg = "adding registry key value '%s' " % self ._regValue
@@ -103,9 +103,9 @@ def addRegKey(self, regKey, regValue, regType, regData):
103103 self .delRemoteFile (self ._batPathRemote )
104104
105105 def delRegKey (self , regKey , regValue ):
106- self .__operation = "delete"
106+ self ._operation = "delete"
107107
108- self ._initVars (regKey , regValue )
108+ Registry ._initVars (self , regKey , regValue )
109109 self ._createRemoteBatchFile ()
110110
111111 debugMsg = "deleting registry key value '%s' " % self ._regValue
0 commit comments