Seems a python3 vs python2 related error?

https://stackoverflow.com/questions/17431638/get-typeerror-dict-values-object-does-not-support-indexing-when-using-python

Can you try to run your app with python2 for testing please ?

On Thursday, 28 February 2019 05:36:04 UTC+1, Maurice Waka wrote:
>
> Hallo,
> While creating a db, 
> def create():
>     form = SQLFORM(db.food_data,submit_button=T('Submit'))
>     form.element('input[value=Submit]')['_style']='background-color: 
> #DA2128; color:#ffffff'
>     if form.process().accepted:
>          response.flash="form accepted"
>          redirect(URL('default', 'searching'))
>     return dict(form=form)
>
>
>
> Trying to enter data, I got this error:
>
> Traceback (most recent call last):
>  File "/home/mauricewaka/web2py/gluon/restricted.py", line 219, in restricted
>  exec(ccode, environment)
>  File "/home/mauricewaka/web2py/applications/HWell/views/generic.html" 
> <http://127.0.0.1:8000/admin/default/edit/Hestque_Wellness/views/generic.html>,
>  line 81, in <module>
> TypeError: 'dict_values' object does not support i
>
> ndexing
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to