I see a typo there. Should be
room = str(request.*vars*(1))
________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/
On Tue, 28-03-2017 3:53 PM, Michi Schmid wrote:
I am currently working on my diploma thesis and we are using web2py.
But I have an issue which i can not comprehend
--------------------------------------------------
def index():
import datetime
"""
example action using the internationalization operator T and flash
rendered by views/default/index.html or views/generic.html
if you need a simple wiki simply replace the two lines below with:
return auth.wiki()
"""
# now = datetime.datetime.now()
room = str(request.var(1))
response.write(request.vars)
#if str(response.vars(1)) == str(db.esp.raum):
picture = db(db.pic.room == room).select('pic')
return dict((picture==picture))
------------------------------------------------------
when i try to access this url:
http://localhost:8000/time_test?room=261 or when i try to access the
/time_test part
File
"/time/web2py/applications/time_test/controllers/default.py:index",
line 23, in index
TypeError: 'NoneType' object is not callable line 23 is the variable room
--
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
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
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.