app/soc/views/helpers/response_helpers.py
changeset 131 3db97cf7f2c7
parent 128 f6abf00efc62
child 135 a7ccde9d9eed
equal deleted inserted replaced
130:63248d9db484 131:3db97cf7f2c7
   110   context['request'] = context.get('request', request)
   110   context['request'] = context.get('request', request)
   111   context['id'] = id_user.getIdIfMissing(context.get('id', None))
   111   context['id'] = id_user.getIdIfMissing(context.get('id', None))
   112   context['user'] = id_user.getUserIfMissing(context.get('user', None),
   112   context['user'] = id_user.getUserIfMissing(context.get('user', None),
   113                                              context['id'])
   113                                              context['id'])
   114   context['is_admin'] = context.get(
   114   context['is_admin'] = context.get(
   115       'is_admin', users.is_current_user_admin())
   115       'is_admin', id_user.isIdDeveloper(id=context['id'])),
   116   context['is_debug'] = context.get('is_debug', system.isDebug())
   116   context['is_debug'] = context.get('is_debug', system.isDebug())
   117   context['sign_in'] = context.get(
   117   context['sign_in'] = context.get(
   118       'sign_in', users.create_login_url(request.path))
   118       'sign_in', users.create_login_url(request.path))
   119   context['sign_out'] = context.get(
   119   context['sign_out'] = context.get(
   120       'sign_out', users.create_logout_url(request.path))
   120       'sign_out', users.create_logout_url(request.path))