@@ -46,7 +46,7 @@ def initializeHandler(cls, serviceInfoDict):
46
46
return S_ERROR (f"Can't connect to DB: { repr (excp )} " )
47
47
return S_OK ()
48
48
49
- def initializeRequest (self ):
49
+ def initialize (self ):
50
50
self .__backend = self .getCSOption ("Backend" , "local" )
51
51
self .__localSEName = self .getCSOption ("LocalSE" , "SandboxSE" )
52
52
self ._maxUploadBytes = self .getCSOption ("MaxSandboxSizeMiB" , 10 ) * 1048576
@@ -64,6 +64,9 @@ def initializeRequest(self):
64
64
if SandboxStoreHandler .__purgeCount == 0 :
65
65
threading .Thread (target = self .purgeUnusedSandboxes ).start ()
66
66
67
+ def initializeRequest (self ):
68
+ self .initialize ()
69
+
67
70
def __getSandboxPath (self , md5 ):
68
71
"""Generate the sandbox path"""
69
72
# prefix = self.getCSOption( "SandboxPrefix", "SandBox" )
@@ -292,7 +295,7 @@ def __networkToFile(self, fileHelper, destFileName=False):
292
295
fd = tfd
293
296
else :
294
297
fd = open (destFileName , "wb" )
295
- result = fileHelper .networkToDataSink (fd , maxFileSize = self .__maxUploadBytes )
298
+ result = fileHelper .networkToDataSink (fd , maxFileSize = self ._maxUploadBytes )
296
299
fd .close ()
297
300
except Exception as e :
298
301
gLogger .error ("Cannot open to write destination file" , f"{ destFileName } : { repr (e ).replace (',)' , ')' )} " )
0 commit comments