[Zope] is it possible to get a file from its id?
peter sabaini
sabaini@inode.at
Tue, 22 Oct 2002 15:36:27 +0200
in Script (Python):
id = "my_file_name"
o = getattr(context, id)
this assumes that the file "my_file_name" can be acquired from context
juan garcia wrote:
> if I have done
>
> files = container.Entries.objectIds('File')
>
> instead of
>
> files = container.Entries.objectValues('File')
>
> how can I later get the file from its ID?
>
>
>
> _______________________________________________________________
> Yahoo! Messenger
> Nueva versión: Webcam, voz, y mucho más ¡Gratis!
> Descárgalo ya desde http://messenger.yahoo.es
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>