diff options
| author | Dharmraj Jhala (OpenERP) <dizzy.zala@gmail.com> | 2014-02-25 11:02:04 +0530 |
|---|---|---|
| committer | Dharmraj Jhala (OpenERP) <dizzy.zala@gmail.com> | 2014-02-25 11:02:04 +0530 |
| commit | c6917b9c074f3f2c19cac1dc3e05c8a3d2cadbed (patch) | |
| tree | 6a17e259f27e029458207671d10fec50b5c425be /addons/auth_signup | |
| parent | b2688a37f84a505d8e334f8b0325b4747d440170 (diff) | |
| parent | 9eb2db4465cefa5dc331123c1b0a4df035545015 (diff) | |
[MERGE] with trunk-survey2-rim addons branch
bzr revid: dizzy.zala@gmail.com-20140225053204-mra08nfvumkxyixa
Diffstat (limited to 'addons/auth_signup')
| -rw-r--r-- | addons/auth_signup/controllers/main.py | 10 | ||||
| -rw-r--r-- | addons/auth_signup/i18n/cs.po | 20 | ||||
| -rw-r--r-- | addons/auth_signup/views/auth_signup_login.xml | 8 |
3 files changed, 20 insertions, 18 deletions
diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index 06c916d9580..3f53b28b075 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -36,7 +36,10 @@ class AuthSignup(openerp.addons.web.controllers.main.Home): def web_login(self, *args, **kw): mode = request.params.get('mode') qcontext = request.params.copy() + super_response = super(AuthSignup, self).web_login(*args, **kw) response = webmain.render_bootstrap_template(request.session.db, 'auth_signup.signup', qcontext, lazy=True) + if isinstance(super_response, LazyResponse): + response.params['values'].update(super_response.params['values']) token = qcontext.get('token', None) token_infos = None if token: @@ -60,10 +63,9 @@ class AuthSignup(openerp.addons.web.controllers.main.Home): qcontext.update(config) if 'error' in qcontext or mode not in ('reset', 'signup') or (not token and not config[mode]): - response = super(AuthSignup, self).web_login(*args, **kw) - if isinstance(response, LazyResponse): - response.params['values'].update(config) - return response + if isinstance(super_response, LazyResponse): + super_response.params['values'].update(config) + return super_response if request.httprequest.method == 'GET': if token_infos: diff --git a/addons/auth_signup/i18n/cs.po b/addons/auth_signup/i18n/cs.po index 341a8b7b796..e88f9b38a59 100644 --- a/addons/auth_signup/i18n/cs.po +++ b/addons/auth_signup/i18n/cs.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" "POT-Creation-Date: 2012-12-21 17:05+0000\n" -"PO-Revision-Date: 2013-03-31 16:45+0000\n" -"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"PO-Revision-Date: 2014-02-03 17:09+0000\n" +"Last-Translator: Jakub Drozd <Unknown>\n" "Language-Team: Czech <cs@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-01-28 06:39+0000\n" -"X-Generator: Launchpad (build 16914)\n" +"X-Launchpad-Export-Date: 2014-02-04 05:51+0000\n" +"X-Generator: Launchpad (build 16916)\n" #. module: auth_signup #: field:res.partner,signup_type:0 @@ -78,7 +78,7 @@ msgstr "Prosím zadejte heslo a potvďte jej" #. module: auth_signup #: view:res.users:0 msgid "Send an email to the user to (re)set their password." -msgstr "" +msgstr "Odeslat uživateli email s výzvou ke změně hesla." #. module: auth_signup #. openerp-web @@ -91,13 +91,13 @@ msgstr "Zaregistrovat se" #. module: auth_signup #: selection:res.users,state:0 msgid "New" -msgstr "" +msgstr "Nový" #. module: auth_signup #: code:addons/auth_signup/res_users.py:258 #, python-format msgid "Mail sent to:" -msgstr "" +msgstr "Zpráva odeslána na:" #. module: auth_signup #: field:res.users,state:0 @@ -152,7 +152,7 @@ msgstr "Prosím zadejte uživatelské jméno." #. module: auth_signup #: selection:res.users,state:0 msgid "Active" -msgstr "" +msgstr "Aktivní" #. module: auth_signup #: code:addons/auth_signup/res_users.py:270 @@ -232,7 +232,7 @@ msgstr "Přihlašovací token je platný" #: code:addons/auth_signup/static/src/js/auth_signup.js:173 #, python-format msgid "Login" -msgstr "" +msgstr "Přihlášení" #. module: auth_signup #. openerp-web @@ -259,7 +259,7 @@ msgstr "Žádná databáze nebyla vybrána!" #. module: auth_signup #: view:res.users:0 msgid "Reset Password" -msgstr "" +msgstr "Resetovat heslo" #. module: auth_signup #: field:base.config.settings,auth_signup_reset_password:0 diff --git a/addons/auth_signup/views/auth_signup_login.xml b/addons/auth_signup/views/auth_signup_login.xml index bdc093e3c27..a279528e9ca 100644 --- a/addons/auth_signup/views/auth_signup_login.xml +++ b/addons/auth_signup/views/auth_signup_login.xml @@ -5,8 +5,8 @@ <data> <template id="auth_signup.login" inherit_id="web.login" name="Sign up - Reset Password"> <xpath expr="//button[@type='submit']" position="before"> - <a t-if="signup" t-attf-href="?mode=signup{{ '&debug' if debug else '' }}" class="btn btn-link pull-right">Sign up</a> - <a t-if="reset" t-attf-href="?mode=reset{{ '&debug' if debug else '' }}" class="btn btn-link pull-right">Reset Password</a> + <a t-if="signup" t-attf-href="?{{ keep_query('*', mode='signup') }}" class="btn btn-link pull-right">Sign up</a> + <a t-if="reset" t-attf-href="?{{ keep_query('*', mode='reset') }}" class="btn btn-link pull-right">Reset Password</a> </xpath> </template> @@ -29,7 +29,7 @@ <t t-set="reset_without_token" t-value="mode == 'reset' and not token"/> - <form class="oe_signup_form" role="form" t-attf-action="/web/login{{ '?debug' if debug else '' }}" method="post"> + <form class="oe_signup_form" role="form" method="post"> <t t-call="web.database_select"/> <div class="form-group field-name" t-if="not reset_without_token"> @@ -68,7 +68,7 @@ <input type="hidden" name="mode" t-att-value="mode"/> <input type="hidden" name="token" t-att-value="token"/> <div class="clearfix oe_login_buttons"> - <a href="/web/login" class="btn btn-link pull-right">Back to Login</a> + <a t-attf-href="?{{ keep_query('*', mode='login') }}" class="btn btn-link pull-right">Back to Login</a> <button type="submit" class="btn btn-primary pull-left"> <t t-if="mode == 'signup'">Sign up</t> <t t-if="mode == 'reset'">Reset password</t> |
