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