예제 #1
0
    def note(self, s, killUnitTest=False):

        if g.unitTesting:
            if killUnitTest:
                assert False, s
        else:
            g.note('Note: %s' % (s))
예제 #2
0
    def note (self,s,killUnitTest=False):

        if g.unitTesting:
            if killUnitTest:
                assert False,s
        else:
            g.note('Note: %s' % (s))
예제 #3
0
 def note(self, s, killUnitTest=False):
     if g.unitTesting:
         if 0:  # To trace cause of failed unit test.
             g.trace('=====', s, g.callers())
         if killUnitTest:
             assert False, s
     else:
         g.note(f"Note: {s}")
예제 #4
0
 def note(self, s, killUnitTest=False):
     if g.unitTesting:
         if 0: # To trace cause of failed unit test.
             g.trace('=====',s, g.callers())
         if killUnitTest:
             assert False, s
     else:
         g.note('Note: %s' % (s))
예제 #5
0
 def create(self, fn):
     '''Create the given file with empty contents.'''
     theDir = g.os_path_dirname(fn)
     g.makeAllNonExistentDirectories(theDir, c=self.c, force=True, verbose=True)
         # Make the directories as needed.
     try:
         f = open(fn, mode='wb')
         f.close()
         g.note('created: %s' % (fn))
     except IOError:
         g.error('can not create: %s' % (fn))
     except Exception:
         g.error('unexpected error creating: %s' % (fn))
         g.es_exception()
예제 #6
0
 def create(self, fn):
     '''Create the given file with empty contents.'''
     theDir = g.os_path_dirname(fn)
     g.makeAllNonExistentDirectories(theDir, c=self.c, force=True, verbose=True)
         # Make the directories as needed.
     try:
         f = open(fn, mode='wb')
         f.close()
         g.note('created: %s' % (fn))
     except IOError:
         g.error('can not create: %s' % (fn))
     except Exception:
         g.error('unexpected error creating: %s' % (fn))
         g.es_exception()
예제 #7
0
 def create(self, fn):
     """Create the given file with empty contents."""
     # Make the directories as needed.
     theDir = g.os_path_dirname(fn)
     if theDir:
         ok = g.makeAllNonExistentDirectories(theDir)
         # #1453: Don't assume the directory exists.
         if not ok:
             g.error(f"did not create directory: {theDir}")
             return
     # Create the file.
     try:
         f = open(fn, mode='wb')
         f.close()
         g.note(f"created: {fn}")
     except IOError:
         g.error(f"can not create: {fn}")
     except Exception:
         g.error(f"unexpected error creating: {fn}")
         g.es_exception()
예제 #8
0
 def lock (self):
     g.note('rendering pane locked')
     self.locked = True
예제 #9
0
 def lock (self):
     '''Lock the vr pane.'''
     g.note('rendering pane locked')
     self.locked = True
예제 #10
0
 def unlock (self):
     '''Unlock the vr pane.'''
     g.note('rendering pane unlocked')
     self.locked = False
예제 #11
0
 def unlock(self):
     """Unlock the vr pane."""
     g.note("rendering pane unlocked")
     self.locked = False
예제 #12
0
 def lock(self):
     """Lock the vr pane."""
     g.note("rendering pane locked")
     self.locked = True
예제 #13
0
 def lock(self):
     '''Lock the vr pane.'''
     g.note('rendering pane locked')
     self.locked = True
예제 #14
0
 def unlock(self):
     '''Unlock the vr pane.'''
     g.note('rendering pane unlocked')
     self.locked = False
예제 #15
0
 def lock (self):
     g.note('rendering pane locked')
     self.locked = True
예제 #16
0
 def unlock (self):
     g.note('rendering pane unlocked')
     self.locked = False
예제 #17
0
 def unlock (self):
     g.note('rendering pane unlocked')
     self.locked = False