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']))
		activities = cache.get_activities(username=username)
		following = cache.get_following(username)
		followers = cache.get_followers(username)
 
		if 'user' in self.session:
	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')
 

src/j/o/journalr-HEAD/models.py   journalr(Download)
	def create(user, action, object):
		a = Activity(user=user.name, img=user.gravatar('30'), action=action, object=object)
		ar = db.put_async(a)
 
		receivers = cache.get_followers(user.name)