Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(28)  |  Call(28)  |  Derive(0)  |  Import(0)

src/p/y/pynuodb-2.1/pynuodb/util.py   pynuodb(Download)
def getLicense(broker, user, password):
    s = Session(broker, service="License")
    s.authorize(user, password)
 
    return s.doRequest(attributes={ "Action" : "GetCurrentLicense" })
 
def setLicense(broker, user, password, licenseText):
    s = Session(broker, service="License")
    s.authorize(user, password)
def getState(broker, user, password):
    s = Session(broker, service="State")
    s.authorize(user, password)
 
    return s.doRequest()
 
def doDatabaseAction(broker, user, password, db_name, action, child=None):
    s = Session(broker, service="ChorusManagement")
    s.authorize(user, password)
def startProcess(agent, user, password, db_name, options=None):
    s = Session(agent, service="ProcessStart")
    s.authorize(user, password)
 
    if not options:

src/n/u/nuodb-python-HEAD/pynuodb/util.py   nuodb-python(Download)
def getLicense(broker, user, password):
    s = Session(broker, service="License")
    s.authorize(user, password)
 
    return s.doRequest(attributes={ "Action" : "GetCurrentLicense" })
 
def setLicense(broker, user, password, licenseText):
    s = Session(broker, service="License")
    s.authorize(user, password)
def getState(broker, user, password):
    s = Session(broker, service="State")
    s.authorize(user, password)
 
    return s.doRequest()
 
def doDatabaseAction(broker, user, password, db_name, action, child=None):
    s = Session(broker, service="ChorusManagement")
    s.authorize(user, password)
def startProcess(agent, user, password, db_name, options=None):
    s = Session(agent, service="ProcessStart")
    s.authorize(user, password)
 
    if not options:

src/p/y/pynuodb-2.1/pynuodb/entity.py   pynuodb(Download)
 
        self.__session = Session(broker_addr, service="Monitor")
        self.__session.authorize(domain_user, domain_pwd)
 
        self.__user = domain_user
    def _send_domain_message(self, service, attributes=None, text=None, children=None):
        session = Session(self.__entry_peer.address, port=self.__entry_peer.port, service=service)
        session.authorize(self.__user, self.__password)
        return session.doRequest(attributes, text, children)
 
    def query(self, query_type, msg_body=None):
        session = Session(self.peer.connect_str, service="Manager")
        session.authorize(self.peer.domain.user, self.peer.domain.password)
        pwd_response = session.doRequest(attributes={"Type": "GetDatabaseCredentials",
                                                     "Database": self.database.name})

src/n/u/nuodb-python-HEAD/pynuodb/entity.py   nuodb-python(Download)
 
        self.__session = Session(broker_addr, service="Monitor")
        self.__session.authorize(domain_user, domain_pwd)
 
        self.__user = domain_user
    def _send_domain_message(self, service, attributes=None, text=None, children=None):
        session = Session(self.__entry_peer.address, port=self.__entry_peer.port, service=service)
        session.authorize(self.__user, self.__password)
        return session.doRequest(attributes, text, children)
 
    def query(self, query_type, msg_body=None):
        session = Session(self.peer.connect_str, service="Manager")
        session.authorize(self.peer.domain.user, self.peer.domain.password)
        pwd_response = session.doRequest(attributes={"Type": "GetDatabaseCredentials",
                                                     "Database": self.database.name})