Esempio n. 1
0
 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
Esempio n. 2
0
    def __init__(self):
        CLI.__init__(self)
        self.serverURL = ""
        self.serverName = ""
        self.modificator = None
        self.connected = False
        self.dirty = False
        self.root = "/"

        self.do_connect("")
Esempio n. 3
0
    def __init__(self):
        CLI.__init__(self)
        self.serverURL = ""
        self.serverName = ""
        self.modificator = None
        self.connected = False
        self.dirty = False
        self.root = "/"

        self.do_connect("")
Esempio n. 4
0
 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, 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 )
Esempio n. 7
0
 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 )
Esempio n. 8
0
 def __init__( self ):
   CLI.__init__( self )
   self.do_connect( None )
   ExitCallback.registerExitCallback( self.do_quit )
Esempio n. 9
0
 def __init__(self):
     CLI.__init__(self)
     self.do_connect(None)
Esempio n. 10
0
 def __init__(self):
     CLI.__init__(self)
     self.do_connect(None)
     ExitCallback.registerExitCallback(self.do_quit)
Esempio n. 11
0
 def __init__(self):
     self.server = TransformationClient()
     self.indentSpace = 4
     CLI.__init__(self)
     API.__init__(self)
Esempio n. 12
0
 def __init__( self ):
   self.transClient = TransformationClient()
   self.indentSpace = 4
   CLI.__init__( self )
   API.__init__( self )