示例#1
0
def list(request):
    PER_PAGE = 10
    bookmark = request.GET.get('bookmark')
    query = PagerQuery(Job).filter('status =', 'published').order('-published_at')
    prev, jobs, next = query.fetch(PER_PAGE, bookmark)
    return _custom_render_to_response('list_jobs.html',
                                      {'jobs': jobs, 'prev': prev, 'next': next, 'title': 'Newest'})
示例#2
0
	def get(self, place_id):
		
		place = models.Place.get(place_id)
		
		if not place:
			return self.error('Unable to find that place')
	
		query = PagerQuery(models.User).order('-total_score')
		prev, results, next = query.fetch(10, pagingKey)