app/soc/views/user/profile.py
changeset 355 9b3f26057f74
parent 324 05e21c089be6
child 358 843d83b87282
equal deleted inserted replaced
354:b931c74abbee 355:9b3f26057f74
   115   link_name_user = None
   115   link_name_user = None
   116 
   116 
   117   # try to fetch User entity corresponding to link_name if one exists
   117   # try to fetch User entity corresponding to link_name if one exists
   118   try:
   118   try:
   119       if link_name:
   119       if link_name:
   120         link_name_user = id_user.getUserFromLinkNameOrDie(link_name)
   120         link_name_user = id_user.getUserFromLinkNameOr404(link_name)
   121   except out_of_band.ErrorResponse, error:
   121   except out_of_band.ErrorResponse, error:
   122     # show custom 404 page when link name doesn't exist in Datastore
   122     # show custom 404 page when link name doesn't exist in Datastore
   123     return simple.errorResponse(request, error, template, context)
   123     return simple.errorResponse(request, error, template, context)
   124   
   124   
   125   # link_name_user will be None here if link name was already None...
   125   # link_name_user will be None here if link name was already None...