def view(self, id): hop = model.Session.query(model.Hop).filter_by(id=id).first() c.js = {'links': hop.links} link_array = simplejson.loads(hop.links) c.title = hop.title c.links = link_array c.count = len(link_array) return render('/view.mako')
def view(self, id): hop = model.Session.query(model.Hop).filter_by(id = id).first() c.js = { 'links': hop.links } link_array = simplejson.loads(hop.links) c.title = hop.title c.links = link_array c.count = len(link_array) return render('/view.mako')
def create(self): ## Template with form field for making hop return render('/toolkit/create.mako')
def index(self): return render('/toolkit/index.mako')
def index(self): return render('/home.mako')