Example #1
0
 def AddDishMenu(self):
     d=Dish()
     d.AddDish()
     self.listdish.append(d)
Example #2
0
 def AddDishMenu(self):
     d = Dish()
     d.AddDish(self.q)
     self.listdish.append(d)
     self.ShowDishMenu()
Example #3
0
 def ShowInputDishForm(self):
     d = Dish()
     print(LoadTpl("formtype0").format(self.selfurl))
     d.DishForm(self.q, self.selfurl)
     print(LoadTpl("submitendform"))
Example #4
0
 def DishForm(self):
     d=Dish()
     print(LoadTpl("form_type1").format(self.selfurl,0))
     d.Form(self.q,self.selfurl)
     print(LoadTpl("submit_and_endform"))