error: <type 'exceptions.TypeError'> 'Set' object is not iterable
HTML
{{extend 'layout.html'}}
<h1>Profile</h1>
<table class="table table-striped">
{{for pers in personID:}}
<tr>
<td>{{=pers.last_name}} </td>
{{pass}}
</tr>
{{pass}}
</table>
ARG - (that is a correct auth_user.id)
http://127.0.0.1:8000/ES1/default/view_user_profile/4
CONTROLLER
@auth.requires_login()
def view_user_profile():
personID=db(db.auth_user(request.args(0)))
return locals()
ERROR LISTING - *File
C:\alex\web2py\web2py\web2py\applications\ES1\views\default\view_user_profile.html
in <module> at line 81*
Enter code here...
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
response.write('\n <div class="span3 left-sidebar">\n ',
escape=False)
response.write('\n <h3>Left Sidebar</h3>\n <p></p>\n
', escape=False)
response.write('\n </div>\n ', escape=False)
pass
response.write('\n\n <div class="', escape=False)
response.write(middle_columns)
response.write('">\n ', escape=False)
response.write('\n ', escape=False)
response.write('\r\n<h1>Profile</h1>\r\n<table class="table table-striped">\r\n
', escape=False)
for pers in personID:
response.write('\r\n <tr>\r\n <td>', escape=False)
response.write(pers.last_name)
response.write(' </td>\r\n ', escape=False)
pass
response.write('\r\n </tr>\r\n ', escape=False)
pass
response.write('\r\n</table>\r\n', escape=False)
response.write('\n ', escape=False)
response.write('\n </div>\n\n ', escape=False)
if right_sidebar_enabled:
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.