コード例 #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
ファイル: project.py プロジェクト: AltisCorp/Change-By-Us
    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
ファイル: admin.py プロジェクト: HugoButel/Change-By-Us
    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')