Пример #1
0
    def showContent(self):
        featuredProjects = mProject.getFeaturedProjectsDictionary(self.db)

        self.template_data['featured_projects'] = dict(
            data=featuredProjects, json=json.dumps(featuredProjects))

        return self.render('cms_content')
Пример #2
0
    def getFeaturedProjects(self):
        # overkill to get the full dictionary, but it's a small admin-only call
        projects = mProject.getFeaturedProjectsDictionary(self.db)

        return self.json(projects)
Пример #3
0
    def getFeaturedProjects(self):
        # overkill to get the full dictionary, but it's a small admin-only call
        projects = mProject.getFeaturedProjectsDictionary(self.db)

        return self.json(projects)
Пример #4
0
    def showContent(self):
        featuredProjects = mProject.getFeaturedProjectsDictionary(self.db)

        self.template_data['featured_projects'] = dict(data = featuredProjects, json = json.dumps(featuredProjects))

        return self.render('cms_content')