RE: [Zope] object acquisition via python scripts

2005-07-22 Thread Jon Bowlas
acquisition via python scripts On Fri, Jul 22, 2005 at 04:10:03PM +0100, Jon Bowlas wrote: > And my get_attobject script contains the following code: > > > > attobjects = context.objectValues('Attributes object') > > if attobjects: >

Re: [Zope] object acquisition via python scripts

2005-07-22 Thread Paul Winkler
On Fri, Jul 22, 2005 at 04:10:03PM +0100, Jon Bowlas wrote: > And my get_attobject script contains the following code: > > > > attobjects = context.objectValues('Attributes object') > > if attobjects: > > return attobjects[0] > > return None > (snip) > But what

[Zope] object acquisition via python scripts

2005-07-22 Thread Jon Bowlas
Hi,   I’m not sure if the subject line accurately describes what I’m trying to do, anyway let me try and explain.   I have a set of folders like this:   Site root object   | Attributes object   | Layout ZPT   | get_attobject (python script)   | get_