Is there a way of referencing the current application in the routes.py as a variable ?
For example, We have the following code in our routes.py : error_message_ticket = ('<html><body><h1>Internal error</h1>Ticket issued:' '<a href="/SYS/admin/default/ticket/%(ticket)s"' ' target="_blank">%(ticket)s</a>' '<h1>ERROR DETECTED</h1>' '</body></html>') Our developers don't have access to the admin console in production so they can't access the error messages. I put the error messages on the application level, but I would then need to have the application as a variable in the routes.py : error_message_ticket = ( *'<html><body><h1>Internal error</h1>Ticket issued:' '<a href="/SYS/%(app)/default/ticket/%(ticket)s"' ' target="_blank">%(ticket)s</a>' '<h1>ERROR DETECTED</h1>'** '</body></html>'*) I see that the %(ticket) variable contains the application at the beginning of it's string so I think this should be possible. Does anyone know if such a variable exists or how this could be done ? Kind Regards, David -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/3935c800-4d11-4f98-9f72-9607b54b81eb%40googlegroups.com.