custom error ticket message

20 views
Skip to first unread message

selecta

unread,
Apr 21, 2011, 5:44:26 AM4/21/11
to web2py-users
I found that in rewrite.py
def _params_default(app=None):
there is
p.error_message_ticket = ...

Is there a way to customise/overwrite this error messag in my
application?
or do i have to edit rewrite.py to customize it

Anthony

unread,
Apr 21, 2011, 9:07:57 AM4/21/11
to web...@googlegroups.com
I think you should be able to specify that in routes.py, as explained here: http://web2py.com/book/default/chapter/04#Routes-on-Error

selecta

unread,
Apr 21, 2011, 9:37:33 AM4/21/11
to web2py-users
that is not so nice, it would be a lot better if i could define the
error message in my application
the reason is that i created an issue tracker plugin that should
directly be displayed with the error message
however since this is a plugin it may not be available in every
application, also the plugin should not have to modify routes to work
can this be fixed?

Anthony

unread,
Apr 21, 2011, 9:59:38 AM4/21/11
to web...@googlegroups.com
Would it help to use app-specific routes (i.e., put a routes.py file in the application folder)?

On Thursday, April 21, 2011 9:37:33 AM UTC-4, selecta wrote:
that is not so nice, it would be a lot better if i could define the
error message in my application
the reason is that i created an issue tracker plugin that should
directly be displayed with the error message
however since this is a plugin it may not be available in every
application, also the plugin should not have to modify routes to work
can this be fixed?

selecta

unread,
Apr 21, 2011, 10:12:46 AM4/21/11
to web2py-users
i dont think this would help since the issue tracker should be a
plugin
as a plugin it can only provide files and folders starting with
plugin_
:(
Reply all
Reply to author
Forward
0 new messages