app/soc/views/site/user/profile.py
changeset 134 1f64d7a4d82d
parent 132 15d89c284106
child 141 e120c24b89e2
equal deleted inserted replaced
133:84ae145bcef3 134:1f64d7a4d82d
   156       edit_link = '%sprofile/%s' % (request.path[:-len('lookup')],
   156       edit_link = '%sprofile/%s' % (request.path[:-len('lookup')],
   157                                     user.link_name) 
   157                                     user.link_name) 
   158     # else: URL is not one that was expected, so do not display edit link
   158     # else: URL is not one that was expected, so do not display edit link
   159   elif not form:
   159   elif not form:
   160     # no pre-populated form was constructed, so show the empty look-up form
   160     # no pre-populated form was constructed, so show the empty look-up form
   161     form = DeveloperForm()
   161     form = LookupForm()
   162 
   162 
   163   context.update({'form': form,
   163   context.update({'form': form,
   164                   'edit_link': edit_link,
   164                   'edit_link': edit_link,
   165                   'found_user': user,
   165                   'found_user': user,
   166                   'lookup_error': lookup_error,
   166                   'lookup_error': lookup_error,