[Product-Developers] Re: Making an adapter traversable
Hedley Roos
hedleyroos at gmail.com
Tue Jul 15 22:23:10 UTC 2008
> Who knows why, but 'foo' is not an attribute on your object even though the
> schema extender adds it to its Schema().
I wasn't being clear in my original post. foo really is just an
arbitrary method on the adapter. I do not include it in fields.
I think traversable did work, because whereas
http://server/my-adapted-object/foo gives me the Unauthorized,
http://server/my-adapted-object/not_existing_thingy gives me a
NotFound (I guess an AttributeError originally).
> Views. ;-)
I thought so...
I really don't need it to be traversable - I was just exploring schemaextender.
Thanks Martin!
More information about the Product-Developers
mailing list