diff options
| author | Christophe Simonis <christophe@cobalt> | 2008-12-15 14:36:27 +0100 |
|---|---|---|
| committer | Christophe Simonis <christophe@cobalt> | 2008-12-15 14:36:27 +0100 |
| commit | 929e87aaef0e9005fa336830d6f7ff41aef25487 (patch) | |
| tree | cf138ab556e00cdc8e1b8148af124801381d378a /addons/base_module_publish/wizard/base_module_publish.py | |
| parent | 6af4fbbbed7122479be3045eb3d28d580277818d (diff) | |
[FIX] base_module_publish: convert module name to string
[IMP] base_module_publish: password is hidden
bzr revid: christophe@cobalt-20081215133627-1sj43xbav1ehv47b
Diffstat (limited to 'addons/base_module_publish/wizard/base_module_publish.py')
| -rw-r--r-- | addons/base_module_publish/wizard/base_module_publish.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/base_module_publish/wizard/base_module_publish.py b/addons/base_module_publish/wizard/base_module_publish.py index 74addefd82c..bfbba7676ad 100644 --- a/addons/base_module_publish/wizard/base_module_publish.py +++ b/addons/base_module_publish/wizard/base_module_publish.py @@ -129,7 +129,7 @@ upload_info_form = '''<?xml version="1.0"?> align="0.0" colspan="4"/> <field name="login"/> <newline/> - <field name="password"/> + <field name="password" password="True"/> <newline/> <field name="email"/> </form>''' @@ -227,18 +227,18 @@ def _upload(self, cr, uid, datas, context): download = 'http://www.openerp.com/download/modules/'+res['module_filename'] result = post_multipart('www.openerp.com', '/mtree_upload.php', [ - ('login',datas['form']['login']), - ('password',datas['form']['password']), - ('module_name',mod.name) + ('login', datas['form']['login']), + ('password', datas['form']['password']), + ('module_name', str(mod.name)) ], [ ('module', res['module_filename'], res['module_file']) ]) - if result[0] == "1": + if result and result[0] == "1": raise wizard.except_wizard(_('Error'), _('Login failed!')) - elif result[0] == "2": + elif result and result[0] == "2": raise wizard.except_wizard(_('Error'), _('This version of the module is already exist on the server')) - elif result[0] != "0": + elif result and result[0] != "0": raise wizard.except_wizard(_('Error'), _('Failed to upload the file')) updata = { |
