I got this from web2py appliances apps.
Just trying it out.
Regards

On Wed, 11 Sep 2019, 11:04 Dave S <snidely....@gmail.com> wrote:

>
>
> On Tuesday, September 10, 2019 at 1:31:11 PM 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
>>
>>
> It appears that this is in one of your model files ... does that file tell
> you what it expects person_id to be or to come from?
>
> "has_access()" sounds like a Flask decorator, based on a quick Google
> search.
>
> /dps
>
>
>
> /dps
>
>
> --
> 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/8b37f831-8a82-4d96-b69a-5d9cf74a154c%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/8b37f831-8a82-4d96-b69a-5d9cf74a154c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAAcHJF8S8ERXJOms6RBwx3o1One%3D%2BJPcHnRz%2BdL1f5z7Sarmww%40mail.gmail.com.

Reply via email to