Exemplo n.º 1
0
 def doLogin (self, user=None, groupname=None):
     self.doDisconnect()
     if user:
         self.gateway = dbhelpers.login(user, groupname)
     else:
         self.gateway = dbhelpers.loginAsPublic()
     self.doConnect()
Exemplo n.º 2
0
 def doLogin(self, user=None, groupname=None):
     self.doDisconnect()
     if user:
         self.gateway = dbhelpers.login(user, groupname)
     else:
         self.gateway = dbhelpers.loginAsPublic()
     self.doConnect()
Exemplo n.º 3
0
 def doLogin(self, user=None, groupname=None):
     l = (user, groupname)
     if self._has_connected and self._last_login == l:
         return self.doConnect()
     self.doDisconnect()
     if user:
         self.gateway = dbhelpers.login(user, groupname)
     else:
         self.gateway = dbhelpers.loginAsPublic()
     self.doConnect()
     self._last_login = l
 def doLogin(self, user=None, groupname=None):
     l = (user, groupname)
     if self._has_connected and self._last_login == l:
         return self.doConnect()
     self.doDisconnect()
     if user:
         self.gateway = dbhelpers.login(user, groupname)
     else:
         self.gateway = dbhelpers.loginAsPublic()
     self.doConnect()
     self._last_login = l
Exemplo n.º 5
0
 def doLogin(self, user):
     self.doDisconnect()
     self.gateway = dbhelpers.login(user)