def display_recent(request, page=0, count=0, template='product/recently_added.html'):
    if count == 0:
        count = config_value('PRODUCT','NUM_PAGINATED')

    if page == 0:
        if request.method == 'GET':
            page = request.GET.get('page', 1)
        else:
            page = 1
     
    query = Product.objects.recent_by_site()
    paginator = Paginator(query, count)
    try:
        currentpage = paginator.page(page)
    except InvalidPage:
        currentpage = None
    
    ctx = RequestContext(request, {
        'page' : currentpage,
        'paginator' : paginator,
    })
    return render_to_response(template, context_instance=ctx)
Retrieves the deployment ID from ZooKeeper.
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/views/filters.py/display_recent--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/appcontroller_client.py/AppControllerClient.get_deployment_id