Ejemplo n.º 1
0
class ArticlesAdminDirectory(Directory):
    _q_exports = ['', 'actions','Article']


    def __init__(self, root):
        Directory.__init__(self, root)
        self.Article = ArticleDirectory()
        self.Article.setRoot(root)
        #Article = ArticleDirectory()

    def _q_index(self):
        from Articles import ArticlesPage
        v = ArticlesPage()
        return v.handle(get_request())

    def actions(self):
        from Articles import ArticlesPage
        v = ArticlesPage()
        return v.actions()
Ejemplo n.º 2
0
 def __init__(self, root):
     Directory.__init__(self, root)
     self.Article = ArticleDirectory()
     self.Article.setRoot(root)