def list_designs(request):
 DEFAULT_PAGE_SIZE = 20
 app_name = get_app_name(request)
 prefix = 'q-'
 querydict_query = _copy_prefix(prefix, request.GET)
 querydict_query[(prefix + 'type')] = app_name
 search_filter = request.GET.get('text', None)
 if (search_filter is not None):
  querydict_query[(prefix + 'text')] = search_filter
 (page, filter_params) = _list_designs(request.user, querydict_query, DEFAULT_PAGE_SIZE, prefix)
 return render('list_designs.mako', request, {'page': page, 'filter_params': filter_params, 'prefix': prefix, 'user': request.user, 'designs_json': json.dumps([query.id for query in page.object_list])})

def list_designs ( request ) : DEFAULT_PAGE_SIZE = 20 app_name = get_app_name ( request ) prefix = 'q-' querydict_query = _copy_prefix ( prefix , request . GET ) querydict_query [ ( prefix + 'type' ) ] = app_name search_filter = request . GET . get ( 'text' , None ) if ( search_filter is not None ) : querydict_query [ ( prefix + 'text' ) ] = search_filter ( page , filter_params ) = _list_designs ( request . user , querydict_query , DEFAULT_PAGE_SIZE , prefix ) return render ( 'list_designs.mako' , request , { 'page' : page , 'filter_params' : filter_params , 'prefix' : prefix , 'user' : request . user , 'designs_json' : json . dumps ( [ query . id for query in page . object_list ] ) } )
list all workflow designs .