I'm using the awesome ErrorReporting code from the example project in
Method 3 to send me an email when certain errors occur.  I got the
code from here: http://docs.turbogears.org/1.0/ErrorReporting

(Side note----this stuff really should be included in TG by
default...it's awesome.)

It's been working fine for the last month or so.

Now I've gone ahead and set
genshi.default_doctype = 'html-transitional' in my app.cfg so I could
get that output from my genshi templates.

The problem is that the Error Reporting code really doesn't like that.

Anyone know the best way to fix it?

Here's the traceback I get when the error reporting code tries to send
an email:


2009-01-22 09:02:24,914 turbogears.controllers ERROR Error email
failed: __init__() got an unexpected keyword argument 'doctype'
Traceback (most recent call last):
  File "/home/dev_branch/ws/xstart/xstart/errorhandling.py", line 163,
in cp_on_http_error
    self.send_exception_email(**data)
  File "/home/dev_branch/ws/xstart/xstart/errorhandling.py", line 219,
in send_exception_email
    data)
  File "/home/dev_branch/ws/xstart/xstart/errorhandling.py", line 262,
in _render_error_template
    content_type, None)
  File "/home/mypy/lib/python2.5/TurboGears-1.0.8-py2.5.egg/turbogears/
controllers.py", line 88, in _process_output
    fragment=fragment)
  File "/home/mypy/lib/python2.5/TurboGears-1.0.8-py2.5.egg/turbogears/
view/base.py", line 159, in render
    return engine.render(**kw)
  File "/home/mypy/lib/python2.5/Genshi-0.5.1-py2.5-linux-x86_64.egg/
genshi/template/plugin.py", line 110, in render
    return self.transform(info, template).render(**kwargs)
  File "/home/mypy/lib/python2.5/Genshi-0.5.1-py2.5-linux-x86_64.egg/
genshi/core.py", line 178, in render
    generator = self.serialize(method=method, **kwargs)
  File "/home/mypy/lib/python2.5/Genshi-0.5.1-py2.5-linux-x86_64.egg/
genshi/core.py", line 240, in serialize
    return get_serializer(method, **kwargs)(_ensure(self))
  File "/home/mypy/lib/python2.5/Genshi-0.5.1-py2.5-linux-x86_64.egg/
genshi/output.py", line 81, in get_serializer
    return method(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'doctype'

Thank you!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to