Re: [Zope] ExternalFile - getting back the file

2006-07-19 Thread Gabriel Genellina

At Wednesday 19/7/2006 15:16, [EMAIL PROTECTED] wrote:



I'm using the ExternalFile product:

http://www.zope.org/Members/arielpartners/ExternalFile

because I need to have a file both in ZMI, as well as in filesystem.

I would like to ask if anyone can tell me how to get back the file that
ExternalFile was created from, having only the object? In fact I do not need
the file itself, but tha data (bytes) that were inside.


Do you mean, the file in the filesystem does not exist anymore? An 
ExternalFile is like a pointer to a file, it does not store the 
actual file content, so if the original file is not there you can't 
get anything.


Or, if you are asking about how to retrieve the (existing) file 
contents, look in the sources for the getContents() method.




Gabriel Genellina
Softlab SRL 






__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas


___
Zope maillist  -  Zope@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 )


Re: [Zope] ExternalFile - getting back the file

2006-07-19 Thread David H

[EMAIL PROTECTED] wrote:


Hi  :-)

I'm using the ExternalFile product:

http://www.zope.org/Members/arielpartners/ExternalFile

because I need to have a file both in ZMI, as well as in filesystem.

I would like to ask if anyone can tell me how to get back the file that
ExternalFile was created from, having only the object? In fact I do not need
the file itself, but tha data (bytes) that were inside.

I would be very grateful for any help.

Best regards,
Maciej Zieba 





 

a) why do you need access to *both* the file system *and* the ZMI for 
the same object?  (because ExternalFile (says) the external files appear 
as objects in the ZMI)
b) You want to get back the file that ExternalFile was created from, 
having only the object?  Can you explain that?  Sounds like Freud would 
be interested.


David



___
Zope maillist  -  Zope@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 )