예제 #1
0
 def __before__(self, **kwargs):
     c.product_categories = ProductCategory.find_all()
예제 #2
0
 def index(self):
     c.can_edit = True
     c.product_category_collection = ProductCategory.find_all()
     return render('/product_category/list.mako')
예제 #3
0
 def stats(self, id):
     c.can_edit = True
     c.product_category = ProductCategory.find_by_id(id)
     c.product_categories = ProductCategory.find_all()
     return render('/product_category/stats.mako')
예제 #4
0
 def __before__(self, **kwargs):
     c.product_categories = ProductCategory.find_all()
     c.ceilings = Ceiling.find_all()
예제 #5
0
 def stats(self, id):
     c.can_edit = True
     c.product_category = ProductCategory.find_by_id(id)
     c.product_categories = ProductCategory.find_all()
     return render('/product_category/stats.mako')
예제 #6
0
 def index(self):
     c.can_edit = True
     c.product_category_collection = ProductCategory.find_all()
     return render('/product_category/list.mako')