# Path: model.py
# class News(object):
# 	creator_id = ForeignKey(Integer, 'User.id')
# 	headline = Unicode()
# 	story = Unicode()
# 	story_markdown = Unicode()
# 
# 	@staticmethod
# 	def getLast(number=5):
# 		return transact.query(News).order_by(News.id.desc()).limit(number).all()


from handler import *
from model import News

@handler('news_story', authed=True)
def get_index(id):
	return dict(

# Path: model.py
# class News(object):
# 	creator_id = ForeignKey(Integer, 'User.id')
# 	headline = Unicode()
# 	story = Unicode()
# 	story_markdown = Unicode()
# 
# 	@staticmethod
# 	def getLast(number=5):
# 		return transact.query(News).order_by(News.id.desc()).limit(number).all()


# Path: handlers/news.py
from handler import *
from model import News


@handler('news_story', authed=True)
def get_index(id):
	return dict(

		story=News.one(id=id)