[Zope] getting the id from the context

Andreas Jung Andreas Jung <andreas@andreas-jung.com>
Tue, 15 Apr 2003 14:09:41 +0200


--On Dienstag, 15. April 2003 14:04 Uhr +0200 Magnus Heino 
<magnus.heino@home.se> wrote:

>> note_id=getattr(context,id)
>>
>> Must be something obvious - do I have to use getId?
>
> note_id=getattr(context,'id')

The only recommended way to obtain the id of an object is using the getId().

-aj