"""Returns if a valid session has been opened for reading the database"""
"""Returns if a valid session has been opened for reading the database"""
...
@@ -87,7 +89,7 @@ class Database(object):
...
@@ -87,7 +89,7 @@ class Database(object):
"""
"""
ifnotself.is_valid():
ifnotself.is_valid():
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(dbname(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(INFO.name(),SQLITE_FILE)
defcheck_validity(l,obj,valid,default):
defcheck_validity(l,obj,valid,default):
"""Checks validity of user input data against a set of valid values"""
"""Checks validity of user input data against a set of valid values"""
...
@@ -157,7 +159,7 @@ class Database(object):
...
@@ -157,7 +159,7 @@ class Database(object):
"""Returns the names of all registered protocols"""
"""Returns the names of all registered protocols"""
ifnotself.is_valid():
ifnotself.is_valid():
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(dbname(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(INFO.name(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(dbname(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(INFO.name(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(dbname(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(INFO.name(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(dbname(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(INFO.name(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(dbname(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(INFO.name(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(dbname(),SQLITE_FILE)
raiseRuntimeError,"Database '%s' cannot be found at expected location '%s'. Create it and then try re-connecting using Database.connect()"%(INFO.name(),SQLITE_FILE)