Mu urls are defined this way: # Link classes to url on the server urls = ('/homesensor.com/(.*)', 'Sensor' '/sensor/', Sensor, #Links Sensor class to /sensor '/location', HS_Location # Links HS_Location class to /location )
#Main Method, calls appropriate classes if __name__ == "__main__": # To run the web server to start serving the web pages with data app = web.application(urls, globals()) app.run() On 1 August 2012 13:33, Anand Chitipothu <anandol...@gmail.com> wrote: > On Wed, Aug 1, 2012 at 5:38 PM, 9exbizy > <a.m.akingbulu...@student.lboro.ac.uk> wrote: > > Hi Tomas, > > > > How did you solve this problem? > > > > I have a challenge too, I am building a web server to retrieve data from > a > > database and post them on the web using web.py but I get this error > below: > > > > > > http://0.0.0.0:8080/ > > Traceback (most recent call last): > ... > > TypeError: cannot concatenate 'str' and 'type' objects > > Looks like there is an error in your urls (url mapping). > > Can you show what your urls are like? > > Anand > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to webpy@googlegroups.com. > To unsubscribe from this group, send email to > webpy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.