Created
January 31, 2017 11:10
-
-
Save dz0/2b1bf67e8a1951a22784e9d3c3157aee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # įkopijuot į web2py direktoriją -- iš kart parodys klaidos langą, o ne link'ą į jį | |
| default_application = 'app' | |
| routes_app = ((r'/admin\b.*', r'admin'), | |
| (r'/app(.*)', r'app')) | |
| # http://www.dev-explorer.com/articles/full-page-iframe | |
| error_message_ticket=""" | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" lang="EN"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <title>ERROR</title> | |
| </head> | |
| <body style="margin: 0px; padding: 0px; height: 100vh; border: none; overflow: auto;"> | |
| Error: <a href="/admin/default/ticket/%(ticket)s" target="_blank">%(ticket)s</a> | |
| <iframe src="/admin/default/ticket/%(ticket)s" style="display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden;" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"></iframe> | |
| </body> | |
| </html> | |
| """.replace("0%", "0%%") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment