~ubuntu-branches/ubuntu/lucid/loggerhead/lucid-security

« back to all changes in this revision

Viewing changes to loggerhead/controllers/error_ui.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2008-12-09 01:04:39 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081209010439-67a169sw58q1nru3
Tags: 1.10-1
* New upstream release.
* Stop writing home directory to pid file. (Closes: #507002)
* Use objlib from bzr. (Closes: #506999)
* Fix dependency on python-paste.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    template_path = 'loggerhead.templates.error'
29
29
 
30
30
    def __init__(self, branch, exc_info):
31
 
        super(ErrorUI, self).__init__(branch, None)
 
31
        super(ErrorUI, self).__init__(branch, lambda:None)
32
32
        self.exc_info = exc_info
33
33
 
34
 
    def get_values(self, h, args, kw, headers):
 
34
    def get_values(self, path, kwargs, response):
35
35
        exc_type, exc_object, exc_tb = self.exc_info
36
36
        description = StringIO()
37
37
        traceback.print_exception(exc_type, exc_object, None, file=description)