trivial: fix variable name to conform to standards

This commit is contained in:
Frédéric Péters 2014-12-25 00:31:11 +01:00
parent f78c03c81c
commit d186543c6c
1 changed files with 4 additions and 4 deletions

View File

@ -203,8 +203,8 @@ class MethodDirectory(Directory):
def token(self):
token = get_request().get_query()
get_session().ident_idp_token = None
UserClass = get_publisher().user_class
users_with_token = list(UserClass.select(lambda x: x.identification_token == token))
user_class = get_publisher().user_class
users_with_token = list(user_class.select(lambda x: x.identification_token == token))
if len(users_with_token) == 0:
# XXX: better error page
return template.error_page(_('Unknown Token'))
@ -272,9 +272,9 @@ class AdminIDPDir(Directory):
def user_fields_options(cls):
'''List user formdef fields for the SelectWidget of the attribute
mapping setting'''
UserClass = get_publisher().user_class
user_class = get_publisher().user_class
options = []
for field in UserClass.get_formdef().fields:
for field in user_class.get_formdef().fields:
options.append((str(field.id), field.label))
return options