def __init__(self): self.cache = CacheService() self.files = {} self.data = defaultdict(str) self.fd = 0 now = time() self.files['/'] = dict(st_mode=(S_IFDIR | 0755), st_ctime=now, st_mtime=now, st_atime=now, st_nlink=2)
my_debug_help() def _configure_logging(): """ Configure logging. When no logfile argument is given we log to stdout. """ logging.config.fileConfig('loggingClient.conf') logging.info('Logging started') if __name__ == "__main__": _configure_logging() cache = CacheService() cacheMng = CacheManager() tornado.options.parse_command_line() # Read File tornado.options.parse_config_file(options.conf) if not options.rpc and not options.param: int_exec = True if options.help == '': myhelp() sys.exit() if int_exec: print 'Welcome to RestFS Debug Command Line\n' print 'Version %s \n' % restfs_version