refactoring

This commit is contained in:
Miroslav Stampar
2012-01-13 21:55:39 +00:00
parent ec9cc19951
commit 8e4b8d345f
4 changed files with 8 additions and 8 deletions

View File

@@ -897,8 +897,8 @@ class Enumeration:
value = map(lambda x: (dbs[0], x), value)
for db, table in filterPairValues(value):
if not isinstance(db, basestring):
db = db[0]
if isinstance(db, (tuple, list)):
db = db[0] if db else ""
db = safeSQLIdentificatorNaming(db)
table = safeSQLIdentificatorNaming(table, True)