[Twisted-web] nevow CannotAdapt error
Donovan Preston
twisted-web@twistedmatrix.com
Thu, 11 Dec 2003 23:43:31 -0500
On Dec 11, 2003, at 11:24 PM, Kevin Howe wrote:
> I'm trying to run a simple nevow test:
>
> from nevow.renderer import Renderer
> class MyRenderer(Renderer):
> document = """<xml>test</xml>"""
> m = MyRenderer()
>
> But get the following traceback?
<snip cannot adapt>
Are you using cvs? If you use CVS HEAD, you might find that this
problem goes away. Otherwise, you'll need to import atop.regadapt and
call justDoIt to register the adapters.
Also, note that your document is a simple python string, but has xml in
it. Nevow quotes normal python strings, so if you want it to go through
as straight xml, you should wrap it in a stan.xml object first.
dp