I'm trying out a surveys app from KPax2/surveys/take_survey..
but got this error:
Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
Traceback (most recent call last):
File "/home/mauricewaka/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/mauricewaka/web2py/applications/KPax2/controllers/surveys.py"
<http://127.0.0.1:8000/admin/default/edit/KPax2/controllers/surveys.py>, line
370, in <module>
File "/home/mauricewaka/web2py/gluon/globals.py", line 421, in <lambda>
self._caller = lambda f: f()
File "/home/mauricewaka/web2py/gluon/tools.py", line 3869, in f
return action(*a, **b)
File "/home/mauricewaka/web2py/applications/KPax2/controllers/surveys.py"
<http://127.0.0.1:8000/admin/default/edit/KPax2/controllers/surveys.py>, line
93, in take_survey
survey,sa=thissurvey()
File "/home/mauricewaka/web2py/applications/KPax2/models/db_surveys.py"
<http://127.0.0.1:8000/admin/default/edit/KPax2/models/db_surveys.py>, line 95,
in thissurvey
if not has_access(person_id,'survey',survey_id,'take'):#if not
has_access(person_id,'survey',survey_id,'take'):
NameError: name 'person_id' is not defined
Was there a table that was not created/defined?
How do I solve this
Kind regards
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/df61e41e-8d26-46ec-9a56-83dd85f78262%40googlegroups.com.