Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/j/o/journalr-HEAD/main.py   journalr(Download)
	def get(self):
		if 'user' in self.session:
			following = cache.get_by_keys(cache.get_following(self.session['user']['name']), 'User')
			followers = cache.get_by_keys(cache.get_followers(self.session['user']['name']), 'User')
			journals = cache.get_journals(db.Key(self.session['user']['key']))
		journals = cache.get_journals(u.key())
		activities = cache.get_activities(username=username)
		following = cache.get_following(username)
		followers = cache.get_followers(username)
 
		if 'user' in self.session:
			is_following = username in cache.get_following(self.session['user']['name'])
	def get(self, username):
		u = cache.get_user(username)
		following = cache.get_by_keys(cache.get_following(username), 'User')
		followers = cache.get_by_keys(cache.get_followers(username), 'User')