wow that is a very old app. It has some good ideas but it also has bugs. It was a proof of concept. I believe person_id in that context should be
session.person_id or auth.user.id But I cannot promise it will work with this change. On Tuesday, 10 September 2019 13:31:11 UTC-7, Maurice Waka wrote: > > 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/94330cc2-2eb4-44ed-b0da-4c41a43a1ebb%40googlegroups.com.