i have a loop that pulls the url variable and then passes it into the template layer, but it's literally printing the whole string.
http://milby.no-ip.org:8080/ here's my previous attempts to parse the tuple: @ the app page: 15 class index2: 16 def GET(self): 17 welcome = 'Welcome' 18 links = [] 19 for i in urls: 20 #i = str(i).upper().split(' ')[1].strip() 21 links.append(i) 22 return render.index2(welcome, links, welcome) @just experimenting in terminal: 1 urls = ( 2 '/', 'index2', 3 '/books', 'books2' 4 ) 5 print urls 6 7 links = {} 8 for k in range(1,len(urls),2): 9 for v in urls: 10 links[v] = range(1) 11 print links 12 13 14 #links = {} 15 #for i in range(0,len(urls),2): 16 # print i 17 # links[i] = range(1,0,1) 18 #print links --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
