[Zope] Introspection and Zope

Douwe Osinga dmo@oberon.nl
Wed, 28 Nov 2001 10:22:42 +0100


Thanks Dieter,

> You mix attribute access syntax and subscription syntax.
I must admit that I'm not so sure about the difference
 
> I do not know why it works for "absolute_url" but it is not a good
> idea in general.
> Try:	"getattr(context,propname)()"
I did that too and it gives the same result. Resource not found. The
strange thing is that

method = getattr(context,propname)

in itself does not fail. But as soon as I try to do anything with method,
I get the error.

Any clues?

Douwe