[Zope] getting the id from the context

Oliver Bleutgen myzope@gmx.net
Tue, 15 Apr 2003 13:34:53 +0200


Marie Robichon wrote:
> Hi,
> 
> how do I get the id from the context in a python script ?  I tried this 
> but it doesn't like the 'id':
> 
> request=context.REQUEST
> 
> note_id=getattr(context,id)
> 
> Must be something obvious - do I have to use getId?

Why did you not just try it yourself? ;)

return context.getId()

cheers,
oliover