def __before__(self, **kwargs): c.product_categories = ProductCategory.find_all()
def index(self): c.can_edit = True c.product_category_collection = ProductCategory.find_all() return render('/product_category/list.mako')
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')
def __before__(self, **kwargs): c.product_categories = ProductCategory.find_all() c.ceilings = Ceiling.find_all()