示例#1
0
文件: index.py 项目: souca/sixthdev
 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)
示例#2
0
文件: index.py 项目: souca/sixthdev
 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)
示例#3
0
文件: index.py 项目: elmore/sixthdev
 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)
示例#4
0
文件: index.py 项目: elmore/sixthdev
 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)