From c92b3c63b13ad44e8485a577f5fb768c9bdc1f94 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Wed, 3 Jul 2013 08:09:06 -0700 Subject: [PATCH] changed hook name to reuse with persona --- mediagoblin/plugins/openid/__init__.py | 6 +++--- mediagoblin/templates/mediagoblin/auth/login.html | 2 +- mediagoblin/templates/mediagoblin/auth/register.html | 2 +- mediagoblin/templates/mediagoblin/edit/edit_account.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mediagoblin/plugins/openid/__init__.py b/mediagoblin/plugins/openid/__init__.py index 1ee60fbf..ee88808c 100644 --- a/mediagoblin/plugins/openid/__init__.py +++ b/mediagoblin/plugins/openid/__init__.py @@ -57,9 +57,9 @@ def setup_plugin(): pluginapi.register_template_path(os.path.join(PLUGIN_DIR, 'templates')) pluginapi.register_template_hooks( - {'openid_register_link': 'mediagoblin/plugins/openid/register_link.html', - 'openid_login_link': 'mediagoblin/plugins/openid/login_link.html', - 'openid_edit_link': 'mediagoblin/plugins/openid/edit_link.html'}) + {'register_link': 'mediagoblin/plugins/openid/register_link.html', + 'login_link': 'mediagoblin/plugins/openid/login_link.html', + 'edit_link': 'mediagoblin/plugins/openid/edit_link.html'}) def create_user(register_form): diff --git a/mediagoblin/templates/mediagoblin/auth/login.html b/mediagoblin/templates/mediagoblin/auth/login.html index 2f821c0e..3329b5d0 100644 --- a/mediagoblin/templates/mediagoblin/auth/login.html +++ b/mediagoblin/templates/mediagoblin/auth/login.html @@ -46,7 +46,7 @@ {%- trans %}Create one here!{% endtrans %}

{% endif %} - {% template_hook("openid_login_link") %} + {% template_hook("login_link") %} {{ wtforms_util.render_divs(login_form, True) }} {% if pass_auth %}

diff --git a/mediagoblin/templates/mediagoblin/auth/register.html b/mediagoblin/templates/mediagoblin/auth/register.html index 1e4b1858..a7b8033f 100644 --- a/mediagoblin/templates/mediagoblin/auth/register.html +++ b/mediagoblin/templates/mediagoblin/auth/register.html @@ -34,7 +34,7 @@ method="POST" enctype="multipart/form-data">

{% trans %}Create an account!{% endtrans %}

- {% template_hook("openid_register_link") %} + {% template_hook("register_link") %} {{ wtforms_util.render_divs(register_form, True) }} {{ csrf_token }}
diff --git a/mediagoblin/templates/mediagoblin/edit/edit_account.html b/mediagoblin/templates/mediagoblin/edit/edit_account.html index 86c54d79..a10949f5 100644 --- a/mediagoblin/templates/mediagoblin/edit/edit_account.html +++ b/mediagoblin/templates/mediagoblin/edit/edit_account.html @@ -48,7 +48,7 @@

{% endif %} - {% template_hook("openid_edit_link") %} + {% template_hook(edit_link") %} {{ wtforms_util.render_divs(form, True) }}
-- 2.25.1