|
[Webware-checkins] r8043 - Webware/trunk/MiddleKit/Design
From: <updates@we...> - 2009-08-01 13:54
|
Author: chrisz
Date: Sat Aug 1 07:30:54 2009
New Revision: 8043
Modified:
Webware/trunk/MiddleKit/Design/Generate.py
Log:
Don't try to generate supported databases from filenames (e.g. problems with upper/lower case letters).
Modified: Webware/trunk/MiddleKit/Design/Generate.py
==============================================================================
--- Webware/trunk/MiddleKit/Design/Generate.py (original)
+++ Webware/trunk/MiddleKit/Design/Generate.py Sat Aug 1 07:30:54 2009
@@ -16,21 +16,9 @@
# perhaps this is caused by the recent incorporation of win32all (via DataTable)?
sys.stderr = sys.stdout
-def findDatabases():
- """Build list of all supported database engines."""
- databases = set()
- for filename in os.listdir(os.path.dirname(__file__)):
- if filename.endswith('SQLGenerator.py'):
- filename = filename[:-15]
- if filename:
- databases.add(filename)
- return sorted(databases)
-
class Generate(object):
- _databases = findDatabases()
-
def databases(self):
"""Return a list with the names of the supported database engines."""
return ['MSSQL', 'MySQL', 'PostgreSQL', 'SQLite']
|
| Thread | Author | Date |
|---|---|---|
| [Webware-checkins] r8043 - Webware/trunk/MiddleKit/Design | <updates@we...> |