예제 #1
0
파일: main.py 프로젝트: j0ack/joliebulle
    def importBeerXML(self):
        fichierBeerXML = self.s
        try:
            self.recipe = Recipe.parse(fichierBeerXML)
            self.currentRecipeMash = self.recipe.mash

        except:
            errors = Errors()
            errors.warningXml()
예제 #2
0
파일: main.py 프로젝트: j0ack/joliebulle
 def jsonRecipeLib(self, recipe):
     self.s = recipe
     self.recipe = Recipe.parse(recipe)
     data = self.recipe.export("json")
     data = data[1:-1]
     return data