I'm having a problem with a couple of routes I've been using for a
month or two:
routes_out = (
('^/(aktzero|app|tobarja)/default/index', '/'),
('^/(aktzero|app|tobarja)/$c/index', '/$c/'),
('^/(aktzero|app|tobarja)/$anything', '/$anything'),
)
The first one seems fine.
The second one give me errors like this on the console where I started
web2py:
www-d...@teros:~/web2py$ ERROR:web2py:Traceback (most recent call last):
File "/var/www/web2py/gluon/main.py", line 352, in wsgibase
response.stream(static_file, request=request)
File "/var/www/web2py/gluon/globals.py", line 151, in stream
headers=self.headers)
File "/var/www/web2py/gluon/streamer.py", line 49, in
stream_file_or_304_or_206
error_message = rewrite.thread.routes.error_message % 'invalid request'
TypeError: not all arguments converted during string formatting
The third, if I include it, breaks /static/foo and turns the single
error output into several:
www-d...@teros:~/web2py$ ERROR:web2py:Traceback (most recent call last):
File "/var/www/web2py/gluon/main.py", line 352, in wsgibase
response.stream(static_file, request=request)
File "/var/www/web2py/gluon/globals.py", line 151, in stream
headers=self.headers)
File "/var/www/web2py/gluon/streamer.py", line 49, in
stream_file_or_304_or_206
error_message = rewrite.thread.routes.error_message % 'invalid request'
TypeError: not all arguments converted during string formatting
ERROR:web2py:Traceback (most recent call last):
File "/var/www/web2py/gluon/main.py", line 352, in wsgibase
response.stream(static_file, request=request)
File "/var/www/web2py/gluon/globals.py", line 151, in stream
headers=self.headers)
File "/var/www/web2py/gluon/streamer.py", line 49, in
stream_file_or_304_or_206
error_message = rewrite.thread.routes.error_message % 'invalid request'
TypeError: not all arguments converted during string formatting
ERROR:web2py:Traceback (most recent call last):
File "/var/www/web2py/gluon/main.py", line 352, in wsgibase
response.stream(static_file, request=request)
File "/var/www/web2py/gluon/globals.py", line 151, in stream
headers=self.headers)
File "/var/www/web2py/gluon/streamer.py", line 49, in
stream_file_or_304_or_206
error_message = rewrite.thread.routes.error_message % 'invalid request'
TypeError: not all arguments converted during string formatting
ERROR:web2py:Traceback (most recent call last):
File "/var/www/web2py/gluon/main.py", line 352, in wsgibase
response.stream(static_file, request=request)
File "/var/www/web2py/gluon/globals.py", line 151, in stream
headers=self.headers)
File "/var/www/web2py/gluon/streamer.py", line 49, in
stream_file_or_304_or_206
error_message = rewrite.thread.routes.error_message % 'invalid request'
TypeError: not all arguments converted during string formatting
ERROR:web2py:Traceback (most recent call last):
File "/var/www/web2py/gluon/main.py", line 352, in wsgibase
response.stream(static_file, request=request)
File "/var/www/web2py/gluon/globals.py", line 151, in stream
headers=self.headers)
File "/var/www/web2py/gluon/streamer.py", line 49, in
stream_file_or_304_or_206
error_message = rewrite.thread.routes.error_message % 'invalid request'
TypeError: not all arguments converted during string formatting
Any ideas? Did the syntax change?
Thanks.
--
Andrew Thompson
http://aktzero.com/