[Twisted-Python] twisted newbie question about woven and model
Mario Ruggier
twisted-python@twistedmatrix.com
Thu, 5 Jun 2003 09:18:54 +0200
> On Wed, 2003-06-04 at 09:43, Philippe Lafoucri=E8re wrote:
>> Hum
>> I get an exception when I use object/title
>>
>> exceptions.Exception: Node had a model=3Dobject/title attribute, but =
the
>> submodel was not found in [<twisted.web.woven.model.Wrapper instance=20=
>> at
>> 0x843be3c: wrapped data: <ObjectManager instance at 0x8a24b5c>>].
>>
>> (with model =3D object)
>
>
> Someone can help me ?? this still doesn't work !
I'm a newbie myself... might this have something to do with the Wrapper
you are using? Have you tried using the provided generic object wrapper?
from twisted.web.woven import model, interfaces
components.registerAdapter(model.ObjectWrapper, myObject,=20
interfaces.IModel)
mario