#2048: Drive letter separator in Windows dburi not substituted when using
package
specific dburi
----------------------------------------------------------------------+-----
Reporter: tg_werner |
Owner: faide
Type: defect |
Status: new
Priority: normal |
Milestone: 1.1
Component: TurboGears |
Version: 1.0.7
Severity: normal |
Resolution:
Keywords: dburi, sqlite, windows, config, needs patch, needs tests |
----------------------------------------------------------------------+-----
Changes (by Chris Arndt):
* keywords: hub.uri sqlite config => dburi, sqlite, windows, config,
needs patch, needs tests
* summary: Problem with .dburi from config-file on windows-sysstems =>
Drive letter separator in Windows dburi not
substituted when using package specific dburi
Old description:
> Turbogears 1.0.7
>
> When not using the standard "sqlobject.dburi" in e.g. dev.cfg because of
> using
> more than one database (dbone.dburi="sqlite://...."
> dbtwo.dburi="sqlite://...") the uri locator is wrong returned from
> turbogears.config.get() because it gets not substituted.
>
> This could be fixed e.g. by changing Line 214 from:
>
> if value and key == 'sqlobject.dburi' and os.name == "nt":
>
> to:
>
> if value and key.endswith('.dburi') and os.name == "nt":
>
> -
New description:
When not using the standard "sqlobject.dburi" in e.g. `dev.cfg` because of
using more than one database (`dbone.dburi="sqlite://..."`,
`dbtwo.dburi="sqlite://..."`) an incorrect uri locator is returned from
`turbogears.config.get()` because the drive letter separator does not get
substituted.
This could be fixed e.g. by changing Line 214 from:
{{{
if value and key == 'sqlobject.dburi' and os.name == "nt":
}}}
to:
{{{
if value and key.endswith('.dburi') and os.name == "nt":
}}}
--
Ticket URL: <http://trac.turbogears.org/ticket/2048#comment:1>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---