def __init__(self): CLI.__init__(self) self.serverURL = "" self.serverName = "" self.modificator = None self.connected = False self.dirty = False self.root = "/" self.do_connect("")
def __init__(self, vo=None): CLI.__init__(self) self.site = None self.endpoint = None self.project = None self.vmType = None self.vo = vo self.proxyLocation = None self.user = None self.password = None
def __init__(self): CLI.__init__(self) self.connected = False self.masterURL = "unset" self.writeEnabled = False self.modifiedData = False self.rpcClient = None self.do_connect() if self.connected: self.modificator = Modificator(self.rpcClient) else: self.modificator = Modificator() self.indentSpace = 20 self.backupFilename = "dataChanges" # store history histfilename = os.path.basename(sys.argv[0]) historyFile = os.path.expanduser("~/.dirac/%s.history" % histfilename[0:-3]) mkDir(os.path.dirname(historyFile)) if os.path.isfile(historyFile): readline.read_history_file(historyFile) readline.set_history_length(1000) atexit.register(readline.write_history_file, historyFile)
def __init__( self, host = None ): CLI.__init__( self ) # Check if Port is given self.host = None self.port = None self.prompt = '[%s]> ' % colorize( "no host", "yellow" ) if host: self.__setHost( host ) self.cwd = '' self.previous_cwd = '' self.homeDir = '' self.runitComponents = [ "service", "agent", "executor", "consumer" ] # store history histfilename = os.path.basename(sys.argv[0]) historyFile = os.path.expanduser( "~/.dirac/%s.history" % histfilename[0:-3]) mkDir(os.path.dirname(historyFile)) if os.path.isfile( historyFile ): readline.read_history_file( historyFile ) readline.set_history_length(1000) atexit.register( readline.write_history_file, historyFile )
def __init__( self ): CLI.__init__( self ) self.connected = False self.masterURL = "unset" self.writeEnabled = False self.modifiedData = False self.rpcClient = None self.do_connect() if self.connected: self.modificator = Modificator ( self.rpcClient ) else: self.modificator = Modificator() self.indentSpace = 20 self.backupFilename = "dataChanges" # store history histfilename = os.path.basename(sys.argv[0]) historyFile = os.path.expanduser( "~/.dirac/%s.history" % histfilename[0:-3]) mkDir(os.path.dirname(historyFile)) if os.path.isfile( historyFile ): readline.read_history_file( historyFile ) readline.set_history_length(1000) atexit.register( readline.write_history_file, historyFile )
def __init__( self ): CLI.__init__( self ) self.do_connect( None ) ExitCallback.registerExitCallback( self.do_quit )
def __init__(self): CLI.__init__(self) self.do_connect(None)
def __init__(self): CLI.__init__(self) self.do_connect(None) ExitCallback.registerExitCallback(self.do_quit)
def do_help(self, args): """ Default version of the help command Usage: help <command> OR use helpall to see description for all commands""" CLI.do_help(self, args)
def __init__(self): self.server = TransformationClient() self.indentSpace = 4 CLI.__init__(self) API.__init__(self)
def do_quit(self, _line): """quit Quit""" self.do_disconnect("") CLI.do_quit(self, _line)
def do_help( self, args ): """ Default version of the help command Usage: help <command> OR use helpall to see description for all commands""" CLI.do_help( self, args )
def __init__( self ): self.transClient = TransformationClient() self.indentSpace = 4 CLI.__init__( self ) API.__init__( self )