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

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

src/j/o/journalr-HEAD/main.py   journalr(Download)
		if op == 'add':
			self.add_message('success', 'You are now following %s.' %username)
			models.Activity.create(cache.get_by_key(self.session['user']['key']), models.ACTIVITY_FOLLOWING, user)
		elif op == 'del':
			self.add_message('success', 'You are no longer following %s.' %username)
	def get(self, username, journal_name, entry_id):
		user = cache.get_by_key(self.session['user']['key'])
		if user.can_upload() and user.name == username:
			self.response.out.write(blobstore.create_upload_url(
				webapp2.uri_for('upload-file',
		link = utils.absolute_uri('user', username=username)
 
		user = cache.get_by_key(entry_key.parent().parent())
 
		if network == models.USER_SOURCE_FACEBOOK and all([user.facebook_token, user.facebook_enable]):
			return
 
		journal = cache.get_by_key(journal_key)
 
		DATE_FORMAT = '%m/%d/%Y'

src/j/o/journalr-HEAD/feeds.py   journalr(Download)
		username = feed.partition('-')[2]
		user_key = db.Key.from_path('User', username)
		user = cache.get_by_key(user_key)
 
		if user.token == token: