예제 #1
0
 def __enter__(self):
     logging.debug("DBG login %s@%s" % (self.user, self.host))
     assert connection.host
     self.conn = Rcs_client(connection.host, connection.user,
                            connection.passwd)
     self.conn.login()
     return self.conn
예제 #2
0
class connection:
    host = ""
    user = "******"
    passwd = "avmonitorp123"

    def __enter__(self):
        print "DBG login %s@%s" % (self.user, self.host)
        self.conn = Rcs_client(self.host, self.user, self.passwd)
        self.conn.login()
        return self.conn

    def __exit__(self, type, value, traceback):
        #print "DBG logout"
        self.conn.logout()
예제 #3
0
파일: build.py 프로젝트: BwRy/test-av2
class connection:
    host = ""
    user = "******"
    passwd = "avmonitorp123"

    def __enter__(self):
        print "DBG login %s@%s" % (self.user, self.host)
        self.conn = Rcs_client(self.host, self.user, self.passwd)
        self.conn.login()
        return self.conn

    def __exit__(self, type, value, traceback):
        #print "DBG logout"
        self.conn.logout()
예제 #4
0
파일: build.py 프로젝트: BwRy/test-av2
class connection:
    host = ""
    user = "******"
    passwd = "testriteP123" # old: avmonitorp123
    operation = 'AVMonitor'

    rcs=[]

    def __enter__(self):
        logging.debug("DBG login %s@%s" % (self.user, self.host))
        assert connection.host
        self.conn = Rcs_client(connection.host, connection.user, connection.passwd)
        self.conn.login()
        return self.conn

    def __exit__(self, type, value, traceback):
        logging.debug("DBG logout")
        self.conn.logout()
예제 #5
0
class connection:
    host = ""
    user = "******"
    passwd = "testriteP123"  # old: avmonitorp123
    operation = 'AVMonitor'

    rcs = []

    def __enter__(self):
        logging.debug("DBG login %s@%s" % (self.user, self.host))
        assert connection.host
        self.conn = Rcs_client(connection.host, connection.user,
                               connection.passwd)
        self.conn.login()
        return self.conn

    def __exit__(self, type, value, traceback):
        logging.debug("DBG logout")
        self.conn.logout()
예제 #6
0
파일: build.py 프로젝트: BwRy/test-av2
 def __enter__(self):
     logging.debug("DBG login %s@%s" % (self.user, self.host))
     assert connection.host
     self.conn = Rcs_client(connection.host, connection.user, connection.passwd)
     self.conn.login()
     return self.conn
예제 #7
0
 def __enter__(self):
     print "DBG login %s@%s" % (self.user, self.host)
     self.conn = Rcs_client(self.host, self.user, self.passwd)
     self.conn.login()
     return self.conn
예제 #8
0
파일: build.py 프로젝트: BwRy/test-av2
 def __enter__(self):
     print "DBG login %s@%s" % (self.user, self.host)
     self.conn = Rcs_client(self.host, self.user, self.passwd)
     self.conn.login()
     return self.conn