class DataBase(DAL, MyApp):
"""
Subclass of DAL
auto configured based in config Storage object
auto instantiate datamodels
"""
def __init__(self, config, datamodels=None):
self._LAZY_TABLES = dict()
self._tables = dict()
#self.config = config
db = "sqlite://nuevabase.sqlite"
DAL.__init__(self,
db)
0
samuel-bonilla-11088 11 years ago
the database does not work, example:
I change self.config.db.uri = "sqlite :/ / nuevabase.sqlite" but it still connects to "sqlite :/ / myapp.sqlite".
the solution:
class DataBase(DAL, MyApp):
"""
Subclass of DAL
auto configured based in config Storage object
auto instantiate datamodels
"""
def __init__(self, config, datamodels=None):
self._LAZY_TABLES = dict()
self._tables = dict()
#self.config = config
db = "sqlite://nuevabase.sqlite"
DAL.__init__(self,
db)