def get(self): projects = models.Project.all() projects.filter("owner = ", common.get_current_user()) projects.order("name") rand_col = common.get_rand_colour() self.render('list-create.html', 'tasks', {'rand_col':rand_col, 'projects':projects})
def get(self): """ Renders the Create Calendar page of the website """ projects = models.Project.all() projects.filter("owner = ", common.get_current_user()) projects.order("name") rand_col = common.get_rand_colour() self.render('calendar-create.html', 'calendar', {'rand_col':rand_col, 'projects':projects})
def get(self): """ Renders the Create Calendar page of the website """ projects = models.Project.all() projects.filter("owner = ", common.get_current_user()) projects.order("name") rand_col = common.get_rand_colour() self.render('calendar-create.html', 'calendar', { 'rand_col': rand_col, 'projects': projects })
def get(self): """ Renders the Create Project page of the website """ rand_col = common.get_rand_colour() self.render('project-create.html', 'projects', {'rand_col':rand_col})