def index(self): loginid = cherrypy.request.loginid projects = model.get_projects() iteration, daysleft = model.get_current_iteration() if loginid is None: team = () teamposts = None userposts = None todaypost = None bugs = None recent = model.get_recentposts() else: team = model.get_user_projects(loginid) teamposts = model.get_teamposts(loginid) userposts, todaypost = model.get_user_posts(loginid) bugs = model.get_currentbugs(loginid, iteration) recent = None return render('index.xhtml', projects=projects, recent=recent, team=team, bugs=bugs, iteration=iteration, daysleft=daysleft, teamposts=teamposts, userposts=userposts, todaypost=todaypost)
def index(self): loginid = cherrypy.request.loginid projects = model.get_projects() if loginid is None: teamposts = None userposts = None todaypost = None recent = model.get_recentposts() else: teamposts = model.get_teamposts(loginid) userposts, todaypost = model.get_user_posts(loginid) recent = None return render('index.xhtml', projects=projects, recent=recent, teamposts=teamposts, userposts=userposts, todaypost=todaypost)
def posts(self): recent = model.get_recentposts() return render('posts.xhtml', recent=recent)
def posts(self): recent = model.get_recentposts() projects = model.get_projects() return render('posts.xhtml', recent=recent, team=[], projects=projects)