[web2py] Re: Fixed issue 1422 introduced a bug in generic rss views?

2015-03-31 Thread Carlos Fillol Sendra
Removing "str(" and ".encode('utf-8', 'replace'))" strings from rss function in gluon.serializers.py seems to solve the issue (at least it worked for me). def rss(feed): if not 'entries' in feed and 'items' in feed: feed['entries'] = feed['items'] now = datetime.datetime.now()

[web2py] routes_onerror doesn't redirect to a custom controller when an "invalid request" error is produced

2014-05-06 Thread Carlos Fillol Sendra
Imagine that I have an application called 'myapp' running in my local web2py server, and I include this in routes.py to manage HTTP errors using a custom controller (/myapp/portal/error_page): routes_onerror = [ ('myapp/*', '/myapp/portal/error_page'), ] Then, when somebody access to myap