Exemplo n.º 1
0
def feed(request, domain, provider=None):
    company = get_object_or_404(Company, domain=domain)
    content_list = Content.for_company(company, provider)
    page = request.GET.get('page', 1)
    paginator = Paginator(content_list, 10)
    content_list = paginator.page(page)
    return render(request, 'feed.html', locals())
Exemplo n.º 2
0
def feed(request, domain, provider=None):
    company = get_object_or_404(Company, domain=domain)
    content_list = Content.for_company(company, provider)
    page = request.GET.get("page", 1)
    paginator = Paginator(content_list, 10)
    content_list = paginator.page(page)
    return render(request, "feed.html", locals())
Exemplo n.º 3
0
 def items(self, company):
     # only most recent 10 items, dlvr.it caps at 512k
     return Content.for_company(company, self.provider)[:10]
Exemplo n.º 4
0
 def items(self, company):
     # only most recent 10 items, dlvr.it caps at 512k
     return Content.for_company(company, self.provider)[:10]
Exemplo n.º 5
0
 def items(self, company):
     return Content.for_company(company, self.provider)
Exemplo n.º 6
0
 def items(self, company):
     return Content.for_company(company, self.provider)