Charlie Clark wrote:


Am 30.10.2007 um 16:19 schrieb robert rottermann:


da = getattr('my_da_or_what_ever', context, None)

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

That will work within your content class code as well. That's probably your easiest route; I would probably abstract it into a tool/adapter/utility - all depending on what you're using in your stack (i.e. five). I'm not up to speed on cmf 2 changes and the model in that stack.

Andrew
Charlie

--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to