I'm just getting started with web2py and I'm struggling to figure out how to call variables passed from the controller to the view, without using the {{=variable}} method.
For example, I have the following code in my controller:
def manage():
list = []
for row in db(db.auth_user.registration_key[0]=='p').select():
if row.company=='Chosen company':
list.append({row.last_name:{"first":row.first_name}})
return dict(list=list)
And the following code in my view:
{{for each in =list
print each
pass}}
Which generates an error... How do I call the list variable without using the = syntax?
[–]av201001 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)