예제 #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')