Ejemplo n.º 1
0
    def importBeerXML(self):
        fichierBeerXML = self.s
        try:
            self.recipe = Recipe.parse(fichierBeerXML)
            self.currentRecipeMash = self.recipe.mash

        except:
            errors = Errors()
            errors.warningXml()
Ejemplo n.º 2
0
 def jsonRecipeLib(self, recipe):
     self.s = recipe
     self.recipe = Recipe.parse(recipe)
     data = self.recipe.export("json")
     data = data[1:-1]
     return data