Charlie Clark schrieb:
> Dear all,
> 
> a simple question with hopefully a simple answer! How do I access
> objects from an object's context or hierarchy? Specifically I'd like to
> be able to access a ZopeDA connection for a site. 

I
>
if you know the id of the object you are looking for beforehand you can
get it by just requesting it from the context like:

da = getattr('my_da_or_what_ever', context, None)
if da:
  ...

s it correct that I
> have to register this somewhere to be able to access it from a portal
> object?
>
no

hth
robert
begin:vcard
fn:Robert  Rottermann
n:Rottermann;Robert
tel;work:++41 31 333 10 20
tel;fax:++41 31 333 10 23
tel;home:++41 31 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

_______________________________________________
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