예제 #1
0
def _inject():
    return dict(xrange=xrange, hex=hex, now=now(), minutes=minutes, locale=locale)
예제 #2
0
파일: routes.py 프로젝트: younghai/Pager
	def facebook_access_token(self):
		access_token = self.session.get('facebook_access_token', None)
		expires_at = self.session.get('facebook_access_token_expires_at', None)
		print expires_at, now(), expires_at <= now()
		if not (access_token and expires_at) or expires_at < now():
			return None