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()
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()