def jobs_in_city(request, city_name, tvar_name=None):
    city = get_object_or_404(City, ascii_name=city_name)
    queryset = Job.active.filter(city=city)
    extra_context = {'city': city}
    if tvar_name:
        jobtype = get_object_or_404(Type, var_name=tvar_name)
        queryset = queryset.filter(jobtype=jobtype)
        extra_context['selected_jobtype'] = jobtype                     
    return object_list(request, queryset=queryset,
                    extra_context=extra_context,
                    paginate_by=djobberbase_settings.DJOBBERBASE_JOBS_PER_PAGE)
L{HTTPParser.isConnectionControlHeader} returns C{True} for headers
dataset/ETHPy150Open wtrevino/django-djobberbase/djobberbase/views.py/jobs_in_city--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_newclient.py/HTTPParserTests.test_connectionControlHeaders