示例#1
0
 def details(self):
     c.project_id = request.params['project_id']
     c.project = g.redis.hgetall('project.%s' % c.project_id)
     if not c.project:
         abort(404, '404 Not Found')
     return render('directory/details.html')
示例#2
0
 def index(self):
     c.projects = [(k, g.redis.hgetall('project.%s' % k)) for k in g.redis.sort('projects',  0, 10)]
     return render('directory/index.html')