Пример #1
0
 def bind_runtime_fields(self, g, ticket=None):
     self.product.queryset = Product.get_all_products(g.organization._id)
     self.owner.queryset = User.get_all_users(g.organization._id)
     if ticket is not None:
         self.tid.data = ticket.id
     else:
         self.owner.default = unicode(g.user.id)
Пример #2
0
	def bind_runtime_fields(self, g, ticket=None):
		self.product.queryset = Product.get_all_products(g.organization._id)
		self.owner.queryset = User.get_all_users(g.organization._id)
		if ticket is not None:
			self.tid.data = ticket.id
		else:
			self.owner.default = unicode(g.user.id)
def products_browse():
	products = Product.get_all_products(g.organization._id)
	return render_template('management/products/browse_products.html', products=products)