[Zope] Updating files in the LocalFS?

J Cameron Cooper jccooper at jcameroncooper.com
Wed Aug 27 15:27:11 EDT 2003


>
>
>Does anybody know how to update the file contents of a file stored in 
>the LocalFS package?
>
>I've tried reading the source, and thought I found a save() method,
>but I get an Attribute error when I try using it on a file.
>  
>
You should be able to do a manage_upload on the container, just like 
adding a file, and it'll overwrite if one already exists. I'm pretty 
sure this is what the ZMI interface does. You should probably avoid 
using manage_overwrite directly.

I don't see any public methods named or even containing 'save'. 
(Anything containing an underscore at front should be considered internal.)

          --jcc

-- 
"My point and period will be throughly wrought,
Or well or ill, as this day's battle's fought."





More information about the Zope mailing list