def act_new_sale(self): #@TODO: come up with a real standard for new/adm/edit/whatever actions self.model = self.input import mdl_product mdl_product.doit() #@TODO: FIX THIS!! self.consult("mdl_product") zebra.show("frm_sale", self.model)
def list_product(self): # we want to see products in a particular node # (or in no nodes at all) nID = self.model["nodeID"] = int(self.input.get("nodeID", 0)) import mdl_product mdl_product.nodeID = nID mdl_product.doit() if nID: self.model["path"] = Node(ID=self.model["nodeID"]).path self.consult(mdl_product.model) self.consult("mdl_category") zebra.show("lst_product", self.model)
def act_new_sale(self): #@TODO: come up with a real standard for new/adm/edit/whatever actions self.model = self.input import mdl_product; mdl_product.doit() #@TODO: FIX THIS!! self.consult("mdl_product") zebra.show("frm_sale", self.model)