From ba70a779327d905dfe6f6a1bd7b2cac3fec8ae58 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 30 Aug 2012 22:19:59 -0500 Subject: [PATCH] improved logic in dal driver selection (fixed) --- VERSION | 2 +- gluon/sql.py | 4 ++-- gluon/widget.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 3d26aae4..492567e6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.3 (2012-08-30 22:10:41) stable +Version 2.0.3 (2012-08-30 22:19:55) stable diff --git a/gluon/sql.py b/gluon/sql.py index 1a43f4cc..f49878de 100644 --- a/gluon/sql.py +++ b/gluon/sql.py @@ -1,8 +1,8 @@ # this file exists for backward compatibility -__all__ = ['DAL','Field','drivers'] +__all__ = ['DAL','Field','DRIVERS'] -from dal import DAL, Field, Table, Query, Set, Expression, Row, Rows, drivers, BaseAdapter, SQLField, SQLTable, SQLXorable, SQLQuery, SQLSet, SQLRows, SQLStorage, SQLDB, GQLDB, SQLALL, SQLCustomType +from dal import DAL, Field, Table, Query, Set, Expression, Row, Rows, DRIVERS, BaseAdapter, SQLField, SQLTable, SQLXorable, SQLQuery, SQLSet, SQLRows, SQLStorage, SQLDB, GQLDB, SQLALL, SQLCustomType diff --git a/gluon/widget.py b/gluon/widget.py index 3b8055f5..f995df3d 100644 --- a/gluon/widget.py +++ b/gluon/widget.py @@ -1004,9 +1004,9 @@ def start(cron=True): print ProgramAuthor print ProgramVersion - from dal import drivers + from dal import DRIVERS if not options.nobanner: - print 'Database drivers available: %s' % ', '.join(drivers) + print 'Database drivers available: %s' % ', '.join(DRIVERS) # ## if -L load options from options.config file