[SQL-CVS] r2209 - SQLObject/trunk/sqlobject/firebird
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2007-01-16 14:17:09
|
Author: phd Date: 2007-01-16 07:16:52 -0700 (Tue, 16 Jan 2007) New Revision: 2209 Modified: SQLObject/trunk/sqlobject/firebird/firebirdconnection.py Log: The patch 1630441: remove a leading slash in FirebirdConnection. Modified: SQLObject/trunk/sqlobject/firebird/firebirdconnection.py =================================================================== --- SQLObject/trunk/sqlobject/firebird/firebirdconnection.py 2007-01-16 14:07:19 UTC (rev 2208) +++ SQLObject/trunk/sqlobject/firebird/firebirdconnection.py 2007-01-16 14:16:52 UTC (rev 2209) @@ -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) |