def index(self): c.title = "Learning Resources" c.categories = meta.Session.query(Category).order_by(Category.order) return render("/derived/resource_index.mako")
def category(self, id): c.category = meta.Session.query(Category).get(id) c.title = c.category.title c.categories = meta.Session.query(Category).order_by(Category.order) c.bookmarks = meta.Session.query(Bookmark).filter(Bookmark.tags.like("%" + id + "%")).order_by(Bookmark.title) return render("/derived/resource_category.mako")
def index(self): c.title = "Bookmark Categories" c.categories = meta.Session.query(Category).order_by(Category.order) return render("/derived/categories.mako")
def edit(self, id): c.account = meta.Session.query(DeliciousAccount).get(int(id)) c.title = u"Editing Delicious Account “" + c.account.username + u"”" c.mode = 'edit' return render("/derived/delicious_account.mako")
def new(self): c.title = u"New Delicious Account" c.mode = 'new' return render("/derived/delicious_account.mako")
def index(self): c.title = "Delicious Accounts" c.accounts = meta.Session.query(DeliciousAccount).order_by(DeliciousAccount.username) return render("/derived/delicious_index.mako")
def index(self): c.title = u"Welcome to Volapük.info" return render("/derived/home.mako")