9358: get_table_metadata(nav_type) anomaly
This commit is contained in:
parent
3d1643a84e
commit
d9ff7fede2
@ -727,9 +727,9 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
|
|||||||
Private implementation of get_table_func.
|
Private implementation of get_table_func.
|
||||||
"""
|
"""
|
||||||
if table is None:
|
if table is None:
|
||||||
return self.__tables.keys()
|
return list(self.__tables.keys())
|
||||||
elif func is None:
|
elif func is None:
|
||||||
return self.__tables[table] # dict of functions
|
return list(self.__tables[table].keys())
|
||||||
elif func in self.__tables[table].keys():
|
elif func in self.__tables[table].keys():
|
||||||
return self.__tables[table][func]
|
return self.__tables[table][func]
|
||||||
else:
|
else:
|
||||||
@ -811,7 +811,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
|
|||||||
|
|
||||||
def get_table_names(self):
|
def get_table_names(self):
|
||||||
"""Return a list of valid table names."""
|
"""Return a list of valid table names."""
|
||||||
return list(self.get_table_func())
|
return self.get_table_func()
|
||||||
|
|
||||||
def get_table_metadata(self, table_name):
|
def get_table_metadata(self, table_name):
|
||||||
"""Return the metadata for a valid table name."""
|
"""Return the metadata for a valid table name."""
|
||||||
|
@ -181,9 +181,9 @@ class FilterProxyDb(ProxyDbBase):
|
|||||||
Private implementation of get_table_func.
|
Private implementation of get_table_func.
|
||||||
"""
|
"""
|
||||||
if table is None:
|
if table is None:
|
||||||
return self.__tables.keys()
|
return list(self.__tables.keys())
|
||||||
elif func is None:
|
elif func is None:
|
||||||
return self.__tables[table].keys()
|
return list(self.__tables[table].keys())
|
||||||
elif func in self.__tables[table].keys():
|
elif func in self.__tables[table].keys():
|
||||||
return self.__tables[table][func]
|
return self.__tables[table][func]
|
||||||
else:
|
else:
|
||||||
|
@ -194,9 +194,9 @@ class LivingProxyDb(ProxyDbBase):
|
|||||||
Private implementation of get_table_func.
|
Private implementation of get_table_func.
|
||||||
"""
|
"""
|
||||||
if table is None:
|
if table is None:
|
||||||
return self.__tables.keys()
|
return list(self.__tables.keys())
|
||||||
elif func is None:
|
elif func is None:
|
||||||
return self.__tables[table].keys()
|
return list(self.__tables[table].keys())
|
||||||
elif func in self.__tables[table].keys():
|
elif func in self.__tables[table].keys():
|
||||||
return self.__tables[table][func]
|
return self.__tables[table][func]
|
||||||
else:
|
else:
|
||||||
|
@ -164,9 +164,9 @@ class PrivateProxyDb(ProxyDbBase):
|
|||||||
Private implementation of get_table_func.
|
Private implementation of get_table_func.
|
||||||
"""
|
"""
|
||||||
if table is None:
|
if table is None:
|
||||||
return self.__tables.keys()
|
return list(self.__tables.keys())
|
||||||
elif func is None:
|
elif func is None:
|
||||||
return self.__tables[table].keys()
|
return list(self.__tables[table].keys())
|
||||||
elif func in self.__tables[table].keys():
|
elif func in self.__tables[table].keys():
|
||||||
return self.__tables[table][func]
|
return self.__tables[table][func]
|
||||||
else:
|
else:
|
||||||
|
@ -232,9 +232,9 @@ class ProxyDbBase(DbReadBase):
|
|||||||
Private implementation of get_table_func.
|
Private implementation of get_table_func.
|
||||||
"""
|
"""
|
||||||
if table is None:
|
if table is None:
|
||||||
return self.__tables.keys()
|
return list(self.__tables.keys())
|
||||||
elif func is None:
|
elif func is None:
|
||||||
return self.__tables[table].keys()
|
return list(self.__tables[table].keys())
|
||||||
elif func in self.__tables[table].keys():
|
elif func in self.__tables[table].keys():
|
||||||
return self.__tables[table][func]
|
return self.__tables[table][func]
|
||||||
else:
|
else:
|
||||||
|
@ -193,9 +193,9 @@ class ReferencedBySelectionProxyDb(ProxyDbBase):
|
|||||||
Private implementation of get_table_func.
|
Private implementation of get_table_func.
|
||||||
"""
|
"""
|
||||||
if table is None:
|
if table is None:
|
||||||
return self.__tables.keys()
|
return list(self.__tables.keys())
|
||||||
elif func is None:
|
elif func is None:
|
||||||
return self.__tables[table].keys()
|
return list(self.__tables[table].keys())
|
||||||
elif func in self.__tables[table].keys():
|
elif func in self.__tables[table].keys():
|
||||||
return self.__tables[table][func]
|
return self.__tables[table][func]
|
||||||
else:
|
else:
|
||||||
|
@ -482,9 +482,9 @@ class DbBsddbRead(DbReadBase, Callback):
|
|||||||
Private implementation of get_table_func.
|
Private implementation of get_table_func.
|
||||||
"""
|
"""
|
||||||
if table is None:
|
if table is None:
|
||||||
return self.__tables.keys()
|
return list(self.__tables.keys())
|
||||||
elif func is None:
|
elif func is None:
|
||||||
return self.__tables[table].keys()
|
return list(self.__tables[table].keys())
|
||||||
elif func in self.__tables[table].keys():
|
elif func in self.__tables[table].keys():
|
||||||
return self.__tables[table][func]
|
return self.__tables[table][func]
|
||||||
else:
|
else:
|
||||||
@ -509,7 +509,7 @@ class DbBsddbRead(DbReadBase, Callback):
|
|||||||
|
|
||||||
def get_table_names(self):
|
def get_table_names(self):
|
||||||
"""Return a list of valid table names."""
|
"""Return a list of valid table names."""
|
||||||
return list(self.get_table_func())
|
return self.get_table_func()
|
||||||
|
|
||||||
def get_table_metadata(self, table_name):
|
def get_table_metadata(self, table_name):
|
||||||
"""Return the metadata for a valid table name."""
|
"""Return the metadata for a valid table name."""
|
||||||
|
@ -385,9 +385,9 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
|
|||||||
Private implementation of get_table_func.
|
Private implementation of get_table_func.
|
||||||
"""
|
"""
|
||||||
if table is None:
|
if table is None:
|
||||||
return self.__tables.keys()
|
return list(self.__tables.keys())
|
||||||
elif func is None:
|
elif func is None:
|
||||||
return self.__tables[table].keys()
|
return list(self.__tables[table].keys())
|
||||||
elif func in self.__tables[table].keys():
|
elif func in self.__tables[table].keys():
|
||||||
return self.__tables[table][func]
|
return self.__tables[table][func]
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user