[Twisted-Python] trouble with registering an IModel adapter

Donovan Preston dp at twistedmatrix.com
Wed Aug 6 23:46:57 MDT 2003


On Wednesday, August 6, 2003, at 10:38 PM, Tim Andrews wrote:

> Hi folks,
>
> I copied the following code from the manual, but keep on getting 
> exceptions.
> Any clues?
>
> Thanks,
>
> Tim
>
> # Demonstration of registering an IModel adapter
> #
> # Copied from "The Twisted Documentation" section 7.3.5
> #
> # Raises the following exception:
> #
> #   exceptions.AttributeError: MyDataModel instance has no attribute 
> 'orig'

That example must be very, very old. It should be 'original', like any 
other Adapter, not 'orig'.

dp





More information about the Twisted-Python mailing list