def permanent_redirect_to_people_search(request, property, value):
 if (property == 'seeking'):
  property = 'can_pitch_in'
 if (' ' in value):
  escaped_value = (('"' + value) + '"')
 else:
  escaped_value = value
 q = ('%s:%s' % (property, escaped_value))
 get_args = {u'q': q}
 destination_url = ((reverse('mysite.profile.views.people') + '?') + http.urlencode(get_args))
 return HttpResponsePermanentRedirect(destination_url)

def permanent_redirect_to_people_search ( request , property , value ) : if ( property == 'seeking' ) : property = 'can_pitch_in' if ( ' ' in value ) : escaped_value = ( ( '"' + value ) + '"' ) else : escaped_value = value q = ( '%s:%s' % ( property , escaped_value ) ) get_args = { u'q' : q } destination_url = ( ( reverse ( 'mysite.profile.views.people' ) + '?' ) + http . urlencode ( get_args ) ) return HttpResponsePermanentRedirect ( destination_url )
property is the "tag name" .