RE: [Zope] ExternalMethod for exporting un-pickled Office files tothe filesystem etc
How we can read the "plone file" File from zodb in one file object. Regards Krishna -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Tino Wildenhain Sent: Thursday, June 22, 2006 5:04 PM To: michael nt milne Cc: zope list user Subject: Re: [Zope] ExternalMethod for exporting un-pickled Office files tothe filesystem etc michael nt milne schrieb:
Cheers, thanks a lot for that. I'll give it a go. I still may be interested in sponsoring a version with the improvements you mention etc and possibly more. Would that code be compatible for Unix and also for Windows NTFS?
at the moment, yes ( using os.path.join() for that) directory creating isnt that hard either, its just some recursion and checking... Regards TIno Wildenhain _______________________________________________ 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 )
Krishna Shukla schrieb:
How we can read the "plone file" File from zodb in one file object. Regards Krishna
should work similar - but check the API docs. The meta-type is probably a bit different so you need to extend it in the Zopefind() call. Also for ultra performance, Zope file objects usually dont wear an opaque string with data but linked PData elements which could be read block by block instead of the simple str() in my implemention. Regards Tino Wildenhain
Tino Wildenhain wrote:
Krishna Shukla schrieb:
How we can read the "plone file" File from zodb in one file object. Regards Krishna
should work similar - but check the API docs. The meta-type is probably a bit different so you need to extend it in the Zopefind() call. Also for ultra performance, Zope file objects usually dont wear an opaque string with data but linked PData elements which could be read block by block instead of the simple str() in my implemention.
Look at whatever ATFile specifies; I suspect it's something like getFile(). There's an obvious solution we're missing here by the way: use WebDAV or FTP :) Martin -- View this message in context: http://www.nabble.com/RE%3A-ExternalMethod-for-exporting-un-pickled-Office-f... Sent from the Zope - General forum at Nabble.com.
Of course-I hadn't thought of that. A small WebDav or Ftp script could be written to do that in a batch. I guess possibly not ultimately the most elegant as it would involve the server connecting to itself using a remote connection to transfer files internally? Still worth a try. Would be nice to set up an option to do this from within the interface with config settings. I'll spec something out with a view to creating a product. On 6/22/06, Martin Aspeli <optilude@gmx.net> wrote:
Tino Wildenhain wrote:
Krishna Shukla schrieb:
How we can read the "plone file" File from zodb in one file object. Regards Krishna
should work similar - but check the API docs. The meta-type is probably a bit different so you need to extend it in the Zopefind() call. Also for ultra performance, Zope file objects usually dont wear an opaque string with data but linked PData elements which could be read block by block instead of the simple str() in my implemention.
Look at whatever ATFile specifies; I suspect it's something like getFile().
There's an obvious solution we're missing here by the way: use WebDAV or FTP :)
Martin -- View this message in context: http://www.nabble.com/RE%3A-ExternalMethod-for-exporting-un-pickled-Office-f... Sent from the Zope - General forum at Nabble.com.
_______________________________________________ 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 )
-- michael
participants (4)
-
Krishna Shukla -
Martin Aspeli -
michael nt milne -
Tino Wildenhain