Exemplo n.º 1
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()
Exemplo n.º 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()