loaddump_Articles
This commit is contained in:
@@ -11,11 +11,15 @@ if cfg.get("db_path")==None or cfg.get("db_path").strip()=="":
|
||||
else:
|
||||
db_path=cfg.get("db_path")
|
||||
|
||||
db_mainfile=cfg.get("db_mainfile")
|
||||
db_main_type = cfg.get("db_main_type")
|
||||
if db_main_type == None or db_main_type.strip()=="":
|
||||
db_main_type="sqlite"
|
||||
|
||||
db_mainfile=cfg.get("db_main_file")
|
||||
if db_mainfile == None or db_mainfile.strip()=="":
|
||||
db_mainfile="../srctest.db"
|
||||
|
||||
db_urlfile=cfg.get("db_mainfile")
|
||||
db_urlfile=cfg.get("db_url_file")
|
||||
if db_urlfile == None or db_urlfile.strip()=="":
|
||||
db_urlfile="../srctest_cu.db"
|
||||
|
||||
@@ -26,6 +30,7 @@ db_session = scoped_session(sessionmaker(autocommit=False,
|
||||
autoflush=False,
|
||||
bind=engine))
|
||||
|
||||
|
||||
engine2 = create_engine('sqlite:///'+ path.join(db_path,db_urlfile), convert_unicode=True)
|
||||
|
||||
db_session2 = scoped_session(sessionmaker(autocommit=False,
|
||||
|
||||
Reference in New Issue
Block a user