Author: phd
Date: 2007-01-16 07:18:53 -0700 (Tue, 16 Jan 2007)
New Revision: 2211
Modified:
SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py
Log:
The patch 1630441: remove a leading slash in FirebirdConnection.
Modified: SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py 2007-01-16 14:18:26 UTC (rev 2210)
+++ SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py 2007-01-16 14:18:53 UTC (rev 2211)
@@ -39,8 +39,8 @@
password = 'masterkey'
if not auth:
auth='sysdba'
- if os.name == 'nt' and path[0] == '/':
- # strip the leading slash off of db name/alias
+ # check for alias using
+ if (path[0] == '/') and path[-3:].lower() not in ('fdb', 'gdb'):
path = path[1:]
path = path.replace('/', os.sep)
return cls(host, db=path, user=auth, password=password, **args)
|