From 4a184c7278d55855a3e7b5a26eb0403aa210db74 Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Thu, 2 Jun 2016 17:08:11 +0200 Subject: [PATCH] authn: Remove unused code Unused due to the previoud refactoring. --- rhodecode/authentication/views.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/rhodecode/authentication/views.py b/rhodecode/authentication/views.py index 917aa3de..6c7630be 100644 --- a/rhodecode/authentication/views.py +++ b/rhodecode/authentication/views.py @@ -45,27 +45,6 @@ class AuthnPluginViewBase(object): self.context = context self.plugin = context.plugin - # TODO: Think about replacing the htmlfill stuff. - def _render_and_fill(self, template, template_context, request, - form_defaults, validation_errors): - """ - Helper to render a template and fill the HTML form fields with - defaults. Also displays the form errors. - """ - # Render template to string. - html = render(template, template_context, request=request) - - # Fill the HTML form fields with default values and add error messages. - html = formencode.htmlfill.render( - html, - defaults=form_defaults, - errors=validation_errors, - prefix_error=False, - encoding="UTF-8", - force_defaults=False) - - return html - def settings_get(self, errors={}): """ View that displays the plugin settings as a form.