1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-26 03:04:30 +01:00

pep8ification

This commit is contained in:
kakwa 2017-03-07 22:23:11 +01:00
parent 12bb597903
commit 819e575a28
2 changed files with 9 additions and 3 deletions

View File

@ -1156,13 +1156,18 @@ class LdapCherry(object):
form=form, form=form,
roles=roles, roles=roles,
is_admin=is_admin, is_admin=is_admin,
standalone_groups=self._escape(standalone_groups, 'lonely_groups'), standalone_groups=self._escape(
standalone_groups,
'lonely_groups'
),
backends_display_names=self.backends_display_names, backends_display_names=self.backends_display_names,
custom_js=self.custom_js, custom_js=self.custom_js,
notifications=self._empty_notification(), notifications=self._empty_notification(),
) )
except NameError: except NameError:
raise TemplateRenderError(exceptions.text_error_template().render()) raise TemplateRenderError(
exceptions.text_error_template().render()
)
return glued_template return glued_template

View File

@ -16,7 +16,8 @@ from sets import Set
import yaml import yaml
# List of available types for form # List of available types for form
types = ['string', 'textfield', 'email', 'int', 'stringlist', 'fix', 'password'] types = ['string', 'textfield', 'email', 'int', 'stringlist',
'fix', 'password']
class Attributes: class Attributes: