Previously Charlie Clark wrote:
> Am 30.10.2007 um 16:19 schrieb robert rottermann:
> >
> >da = getattr('my_da_or_what_ever', context, None)

getattr(context, 'my_da_or_what_ever', None) works a bit better.

> Doesn't that only work within a PythonScript? I need access from  
> within a content type, ie. real Python code?

It's called acquisition and it works everywhere. Try it.


Wichert Akkerman <[EMAIL PROTECTED]>    It is simple to make things.                   It is hard to make things simple.
Zope-CMF maillist  -

See for bug reports and feature requests

Reply via email to