URL mappings to views

2011-11-17 Thread David Eagle
I'm new to Pyramid and I'm trying to build a simple app that lists f.ex. hosts on a page www.domain.com/listHosts/ host1 [a href=www.domain.com/host/edit/host1] host2 [a href=www.domain.com/host/edit/host2] where I can create a form to edit attributes of the host and save by posting the

Looping throug lists in a template using a for loop produces a NameError

2011-11-16 Thread David Eagle
I'm new to Pyramid and trying to get it to work with me, I've installed pyramid-1.2.1 in a virtualenv and I'm trying to loop through a simple list within a template but it seems to me that the statement % for item in cisList does not initialize the item variable but if I call ${cisList[0]['name']}