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? TIA Marie Robichon Web Task Force European Synchrotron Radiation Facility BP 220 38043 Grenoble Cedex France http://www.esrf.fr Tel: (33) 04 76 88 21 86 Fax: (33) 04 76 88 24 27
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
--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
participants (4)
-
Andreas Jung -
Magnus Heino -
Marie Robichon -
Oliver Bleutgen