def importBeerXML(self): fichierBeerXML = self.s try: self.recipe = Recipe.parse(fichierBeerXML) self.currentRecipeMash = self.recipe.mash except: errors = Errors() errors.warningXml()
def jsonRecipeLib(self, recipe): self.s = recipe self.recipe = Recipe.parse(recipe) data = self.recipe.export("json") data = data[1:-1] return data