Skip to content

Commit 41bafc9

Browse files
author
Alexander Smishlajev
committed
passs the message translator to cgitb functions
1 parent f8fb7de commit 41bafc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/cgi/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.182 2004-07-11 14:23:12 a1s Exp $
1+
# $Id: client.py,v 1.183 2004-07-13 10:19:13 a1s Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -276,7 +276,7 @@ def inner_main(self):
276276
self.write_html(self.renderContext())
277277
except:
278278
# everything else
279-
self.write_html(cgitb.html())
279+
self.write_html(cgitb.html(i18n=self.translator))
280280

281281
def clean_sessions(self):
282282
"""Age sessions, remove when they haven't been used for a week.
@@ -621,7 +621,7 @@ def renderContext(self):
621621
raise Unauthorised, str(message)
622622
except:
623623
# everything else
624-
return cgitb.pt_html()
624+
return cgitb.pt_html(i18n=self.translator)
625625

626626
# these are the actions that are available
627627
actions = (

0 commit comments

Comments
 (0)