/[sshproxy]/sshproxy/SSHproxy/pwdb/mysql.py
ViewVC logotype

Diff of /sshproxy/SSHproxy/pwdb/mysql.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by pyrofes, Tue Sep 27 13:55:48 2005 UTC revision 1.6 by pyrofes, Thu Oct 27 14:14:36 2005 UTC
# Line 334  class MySQLPwDB(simple.SimplePwDB): Line 334  class MySQLPwDB(simple.SimplePwDB):
334              """ % (username, key)              """ % (username, key)
335          logins = db.cursor()          logins = db.cursor()
336          logins.execute(q_access)          logins.execute(q_access)
337          login = logins.fetchone()[0]          try:
338                login = logins.fetchone()[0]
339            except TypeError:
340                return None
341          logins.close()          logins.close()
342          if login:          if login:
343              self.login = username              self.login = username

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26