Skip to content

Instantly share code, notes, and snippets.

@pagenoare
Created July 4, 2009 16:05
Show Gist options
  • Save pagenoare/140613 to your computer and use it in GitHub Desktop.
Save pagenoare/140613 to your computer and use it in GitHub Desktop.
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