示例#1
0
文件: filters.py 项目: rsms/smisk
	def did_fail(self):
		if not self.have_valid_create_leaf:
			raise http.Unauthorized()
		redirect_to(self.create_leaf, **{self.referrer_param: App.current.request.url})
示例#2
0
文件: filters.py 项目: rsms/smisk
	def did_fail(self):
		if not self.have_valid_create_leaf:
			raise http.Unauthorized()
		redirect_to(self.create_leaf)
示例#3
0
文件: filters.py 项目: rsms/smisk
	def did_authorize(self, user, rsp, exc):
		self.session[self.authorized_param] = user
		if self.referrer_param in self.session:
			referrer = self.session[self.referrer_param]
			del self.session[self.referrer_param]
			redirect_to(referrer)