[Zope-CMF] parent id

Chris Withers chrisw@nipltd.com
Thu, 20 Mar 2003 09:17:10 +0000


Ausum Studio wrote:
> id = 'afearlessfroggiesfile'
> parent_id = getattr(context, id).aq_parent.getId()

BTW, you do realise that in 90% of cases, the above can be simplified to:

context.getId()

;-)

Chris