示例#1
0
文件: page.py 项目: evilsocket/SWG
    def create( self ):
        Item.create(self)

        # create only authors not already done
        if self.author != None and not os.path.exists( os.path.join( Config.getInstance().outputpath, self.author.url ) ):
            self.author.create()

        for category in self.categories:
            # create only categories not already done
            if not os.path.exists( os.path.join( Config.getInstance().outputpath, category.url ) ):
                category.create()

        for tag in self.tags:
            # create only tags not already done
            if not os.path.exists( os.path.join( Config.getInstance().outputpath, tag.url ) ):
                tag.create()
示例#2
0
    def create(self):
        Item.create(self)

        # create only authors not already done
        if self.author != None and not os.path.exists(
                os.path.join(Config.getInstance().outputpath,
                             self.author.url)):
            self.author.create()

        for category in self.categories:
            # create only categories not already done
            if not os.path.exists(
                    os.path.join(Config.getInstance().outputpath,
                                 category.url)):
                category.create()

        for tag in self.tags:
            # create only tags not already done
            if not os.path.exists(
                    os.path.join(Config.getInstance().outputpath, tag.url)):
                tag.create()