1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-12-22 21:00:04 +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,
roles=roles,
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,
custom_js=self.custom_js,
notifications=self._empty_notification(),
)
except NameError:
raise TemplateRenderError(exceptions.text_error_template().render())
raise TemplateRenderError(
exceptions.text_error_template().render()
)
return glued_template

View File

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