Example #1
0
 def index(self):
     c.title = "Learning Resources"
     c.categories = meta.Session.query(Category).order_by(Category.order)
     return render("/derived/resource_index.mako")
Example #2
0
 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")
Example #3
0
 def index(self):
     c.title = "Bookmark Categories"
     c.categories = meta.Session.query(Category).order_by(Category.order)
     return render("/derived/categories.mako")
Example #4
0
 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")
Example #5
0
 def new(self):
     c.title = u"New Delicious Account"
     c.mode = 'new'
     return render("/derived/delicious_account.mako")
Example #6
0
 def index(self):
     c.title = "Delicious Accounts"
     c.accounts = meta.Session.query(DeliciousAccount).order_by(DeliciousAccount.username)
     return render("/derived/delicious_index.mako")
Example #7
0
 def index(self):
     c.title = u"Welcome to Volapük.info"
     return render("/derived/home.mako")