コード例 #1
0
ファイル: sessions.py プロジェクト: sbesson/openmicroscopy
 def __init__(self, dir = None):
     """
     """
     self.logger = logging.getLogger(make_logname(self))
     if dir == None:
         dir = get_user_dir()
     self.dir = path(dir) / "omero" / "sessions"
     if not self.dir.exists():
         self.dir.makedirs()
     try:
         self.dir.chmod(0700)
     except:
         print "WARN: failed to chmod %s" % self.dir
コード例 #2
0
 def __init__(self, dir = None):
     """
     """
     self.logger = logging.getLogger(make_logname(self))
     if dir == None:
         dir = get_user_dir()
     self.dir = path(dir) / "omero" / "sessions"
     if not self.dir.exists():
         self.dir.makedirs()
     try:
         self.dir.chmod(0700)
     except:
         print "WARN: failed to chmod %s" % self.dir
コード例 #3
0
 def __init__(self, dir=None):
     """
     """
     self.logger = logging.getLogger(make_logname(self))
     if dir is None:
         self.dir = old_div(get_omero_userdir(), "sessions")
     else:
         self.dir = path(dir)
     if not self.dir.exists():
         self.dir.makedirs()
     try:
         self.dir.chmod(0o700)
     except:
         print("WARN: failed to chmod %s" % self.dir)
コード例 #4
0
 def setup_method(self, method):
     self.s = fsDBMC.MonitorState()
     self.log = logging.getLogger(make_logname(self))
コード例 #5
0
 def setUp(self):
     self.s = fsDBMC.MonitorState()
     self.log = logging.getLogger(make_logname(self))
コード例 #6
0
ファイル: state.py プロジェクト: bramalingam/openmicroscopy
 def setUp(self):
     self.s = fsDBMC.MonitorState()
     self.log = logging.getLogger(make_logname(self))
コード例 #7
0
 def setup_method(self, method):
     self.s = fsDBMC.MonitorState()
     self.log = logging.getLogger(make_logname(self))