app/soc/views/simple.py
changeset 481 94834a1e6c01
parent 374 9363b9dc2983
child 482 839740b061ad
equal deleted inserted replaced
480:9b07ddeb1412 481:94834a1e6c01
    23   ]
    23   ]
    24 
    24 
    25 
    25 
    26 from django.utils.translation import ugettext_lazy
    26 from django.utils.translation import ugettext_lazy
    27 
    27 
       
    28 from soc.logic import accounts
    28 from soc.logic import out_of_band
    29 from soc.logic import out_of_band
    29 from soc.logic.site import id_user
       
    30 from soc.views import helper
    30 from soc.views import helper
    31 from soc.views.helper import decorators
    31 from soc.views.helper import decorators
    32 
    32 
    33 import soc.views.helper.responses
    33 import soc.views.helper.responses
    34 import soc.views.helper.templates
    34 import soc.views.helper.templates
    69 
    69 
    70   context['page'] = page
    70   context['page'] = page
    71 
    71 
    72   try:
    72   try:
    73     if link_name:
    73     if link_name:
    74       user = id_user.getUserFromLinkNameOr404(link_name)
    74       user = accounts.getUserFromLinkNameOr404(link_name)
    75   except out_of_band.ErrorResponse, error:
    75   except out_of_band.ErrorResponse, error:
    76     return errorResponse(request, page, error, template, context)
    76     return errorResponse(request, page, error, template, context)
    77 
    77 
    78   context['link_name'] = link_name
    78   context['link_name'] = link_name
    79   context['link_name_user'] = user
    79   context['link_name_user'] = user