problem with a list of files
Hi everybody, I am trying to store a list of files in context.REQUEST.SESSION. In order to achieve this I do files = container.Entries.objectValues('File') and later session=context.REQUEST.SESSION session['mylist']=files and I get the error Error Value: Attempt to store an object from a foreign database connection I suppose this is because Zope tries to store the files, and I only need to store the reference to them. Somebody knows how to do it? thank you. _______________________________________________________________ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es
objectValues('File') gets you a list of objects; you might want objectIds('File') hth peter. juan garcia wrote:
Hi everybody,
I am trying to store a list of files in context.REQUEST.SESSION. In order to achieve this I do
files = container.Entries.objectValues('File')
and later
session=context.REQUEST.SESSION
session['mylist']=files
and I get the error
Error Value: Attempt to store an object from a foreign database connection
I suppose this is because Zope tries to store the files, and I only need to store the reference to them. Somebody knows how to do it?
thank you.
_______________________________________________________________ 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 )
participants (2)
-
juan garcia -
peter sabaini