示例#1
0
    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')
示例#2
0
	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')
示例#3
0
 def create(self):
     ## Template with form field for making hop
     return render('/toolkit/create.mako')
示例#4
0
 def index(self):
     return render('/toolkit/index.mako')
示例#5
0
	def create(self):
		## Template with form field for making hop
		return render('/toolkit/create.mako')
示例#6
0
	def index(self):
		return render('/toolkit/index.mako')
示例#7
0
	def index(self):
		return render('/home.mako')
示例#8
0
 def index(self):
     return render('/home.mako')