[Zope] Appending to a file via manage_edit?
Andreas Jung
lists at zopyx.com
Tue Dec 11 12:10:18 EST 2007
--On 11. Dezember 2007 12:04:36 -0500 Jeff Gentry
<jgentry at jimmy.harvard.edu> wrote:
>
> I've been looking around for this, but can't seem to find anything. I'm
> assuming that it is just not possible, but thought I'd ask just in case.
>
> For File objects, I see that manage_edit() has the parameters: title,
> content_type, precondition, filedata & REQUEST. Setting something in the
> filedata parameter will replace the file's current data with that.
>
> This implies (to me at least) that the only way one can edit a file is a
> complete rewrite. Does there exist a way to simply append data to the end
> of the file? For instance, if one wanted to write to a file line by line,
> is that possible in Zope?
out-of-the-box: NO
Appending data would require the manipulation of the linked list of Pdata
elements. There is no API for this available...so basically forget it.
-aj
-------------- 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/20071211/6a6e5b0c/attachment.bin
More information about the Zope
mailing list