[Zope] zope object list from python

Andreas Jung lists at andreas-jung.com
Thu Dec 22 08:13:17 EST 2005


By traversing the *whole* ZODB hierarchy (expensive!):

lst = context.ZopeFind(obj_metatypes=[zsql_metatype], search_sub=1)

or possibly

lst = context.superValues(zsql_metatype)

depending on your usecase...replace 'zsql_metatype' with the corresponding 
metatype for ZSQL method (look at the sources).

-aj

--On 22. Dezember 2005 14:05:19 +0100 Fabio <fabio.marcone at duet.it> wrote:

> Hi!
> I need to get  all SQL Methods defined in Zope from python script. How
> can I  do?
>
> Thanks,
> Fabio
> --
>
> Dott. Fabio Marcone
>
> 2T srl
> Telefono	+39 - 0871- 540154
> Fax		+39 - 0871- 571594
> Email	fabio.marcone at duet.it	
> Indirizzo	Viale B. Croce 573, 66013 Chieti Scalo (CH)
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20051222/668de768/attachment.bin


More information about the Zope mailing list