Beispiel #1
0
 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})
Beispiel #2
0
 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})
Beispiel #3
0
    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
        })
Beispiel #4
0
 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})