Преглед на файлове

fixes to install + recent

version-14
Rushabh Mehta преди 14 години
родител
ревизия
abcf40c6f5
променени са 2 файла, в които са добавени 12 реда и са изтрити 3 реда
  1. +11
    -3
      cgi-bin/webnotes/install_lib/install.py
  2. +1
    -0
      cgi-bin/webnotes/profile.py

+ 11
- 3
cgi-bin/webnotes/install_lib/install.py Целия файл

@@ -98,9 +98,17 @@ class Installer:

webnotes.conn.commit()

#
# main script to create a database from
#
def get_db_password(self, db_name):
"""
Get the db_password by method
"""
import webnotes.defs
if hasattr(webnotes.defs, 'get_db_password'):
return webnotes.defs.get_db_password(db_name)
if hasattr(webnotes.defs, 'db_password'):
return webnotes.defs.db_password
return ''

def import_from_db(self, target, source_path='', password = 'admin', verbose=0):
"""
a very simplified version, just for the time being..will eventually be deprecated once the framework stabilizes.


+ 1
- 0
cgi-bin/webnotes/profile.py Целия файл

@@ -196,6 +196,7 @@ class Profile:
rd = rdl[i]
if rd==new_rd:
del rdl[i]
break

rdl.append(new_rd)
if len(rdl) > 20:


Зареждане…
Отказ
Запис