Ver código fonte

Merge branch 'master' of github.com:webnotes/wnframework

version-14
Rushabh Mehta 13 anos atrás
pai
commit
5c932fd8d9
2 arquivos alterados com 4 adições e 3 exclusões
  1. +1
    -1
      py/webnotes/db.py
  2. +3
    -2
      py/webnotes/modules/patch_handler.py

+ 1
- 1
py/webnotes/db.py Ver arquivo

@@ -26,7 +26,7 @@ class Database:
self.transaction_writes = 0 self.transaction_writes = 0
self.testing_tables = [] self.testing_tables = []


self.password = self.get_db_password(user, password)
self.password = self.get_db_password(self.user, password)
self.connect() self.connect()
if self.user != 'root': if self.user != 'root':


+ 3
- 2
py/webnotes/modules/patch_handler.py Ver arquivo

@@ -18,8 +18,9 @@ def run(patch_list, overwrite = 0, log_exception=1, conn = '', db_name = '', db_


# db connection # db connection
if not conn: if not conn:
connect_db(db_name or webnotes.defs.default_db_name, \
db_password or webnotes.defs.db_password)
dbn = db_name or webnotes.defs.default_db_name
pwd = db_password or (hasattr(webnotes.defs, 'get_db_password') and webnotes.defs.get_db_password(dbn)) or (hasattr(webnotes.defs, 'db_password') and webnotes.defs.db_password)
connect_db(dbn, pwd)
else: else:
webnotes.conn = conn webnotes.conn = conn


Carregando…
Cancelar
Salvar