Remove password on set_trytond

issue4264
review9781002
This commit is contained in:
Cédric Krier
2014-10-23 21:06:28 +02:00
parent fa4708c3e9
commit d71d529a96
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -1,3 +1,4 @@
* Remove password on set_trytond
* Manage reload, save, delete, duplicate and click as class and instance method
Version 3.4.0 - 2014-10-20
+3 -3
View File
@@ -192,7 +192,7 @@ class TrytondConfig(Config):
'Configuration for trytond'
def __init__(self, database=None, user='admin', language='en_US',
password='', config_file=os.environ.get('TRYTOND_CONFIG')):
config_file=os.environ.get('TRYTOND_CONFIG')):
super(TrytondConfig, self).__init__()
if not database:
database = os.environ.get('TRYTOND_DATABASE_URI')
@@ -261,11 +261,11 @@ class TrytondConfig(Config):
return methods
def set_trytond(database=None, user='admin', language='en_US', password='',
def set_trytond(database=None, user='admin', language='en_US',
config_file=None):
'Set trytond package as backend'
_CONFIG.current = TrytondConfig(database, user, language=language,
password=password, config_file=config_file)
config_file=config_file)
return _CONFIG.current