Created
July 4, 2009 16:05
-
-
Save pagenoare/140613 to your computer and use it in GitHub Desktop.
This file contains 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
Index: gluon/restricted.py | |
=================================================================== | |
--- gluon/restricted.py (wersja 989) | |
+++ gluon/restricted.py (kopia robocza) | |
@@ -77,7 +77,8 @@ | |
cPickle.dump(d, open(os.path.join(errors_folder, f), 'wb')) | |
- return '%s/%s' % (a, f) | |
+ #return '%s/%s' % (a, f) | |
+ return d['traceback'].replace('\n', '<br/>') | |
def load(self, file): | |
""" | |
Index: gluon/rewrite.py | |
=================================================================== | |
--- gluon/rewrite.py (wersja 989) | |
+++ gluon/rewrite.py (kopia robocza) | |
@@ -11,7 +11,7 @@ | |
error_message = '<html><body><h1>Invalid request</h1></body></html>' | |
error_message_custom = '<html><body><h1>%s</h1></body></html>' | |
error_message_ticket = \ | |
- '<html><body><h1>Internal error</h1>Ticket issued: <a href="/admin/default/ticket/%(ticket)s" target="_blank">%(ticket)s</a></body><!-- this is junk text else IE does not display the page: '+('x'*512)+' //--></html>' | |
+ '<html><body><h1>Internal error</h1>Ticket issued: <br/>%(ticket)s</body><!-- this is junk text else IE does not display the page: '+('x'*512)+' //--></html>' | |
symbols = {} | |
if os.path.exists('routes.py'): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment