Exemple #1
0
def test_story_new():
    facebookid = "*****@*****.**"
    account = Account.get_by_facebookid(facebookid)
    assert account
    story = Story.new(account)
    story.put()
    assert story
    return story
Exemple #2
0
def test_story_new():
	facebookid = "*****@*****.**"
	account = Account.get_by_facebookid(facebookid)
	assert account
	story = Story.new(account)
	story.put()
	assert story
	return story
Exemple #3
0
 def post(self):  #logout
     accountid = self.session.get('accountid')
     account = Account.get_by_accountid(accountid)
     if 1 != account.mod:
         return
     story = Story.new(account)
     params = {}
     for key in self.request.arguments():
         params[key] = self.request.get(key)
     story.setter(params)
     self.redirect('/story')
Exemple #4
0
	def post(self): #logout
		accountid = self.session.get('accountid')
		account = Account.get_by_accountid(accountid)
		if 1 != account.mod:
			return
		story = Story.new(account)
		params = {}
		for key in self.request.arguments():
			params[key] = self.request.get(key)
		story.setter(params)
		self.redirect('/story')