webgui/lib/WebGUI/Asset/File
Colin Kuskie e3092f0aa8 Fixed a bug where due to the lack of a cached Storage object,
the assetSize in the db was set wrong.  This happened when a File/Image
was added, and when it is committed. Editing the Asset would fix it, but
once it was committed, the files in the Storage area were not added.

List of Changes:
1) Removed setSize from File/Image.pm. It can inherit from File.
2) In Asset::File::processPropertiesFromFormPost, set _storageLocation to the Storage
   object.  Remove the call to setSize since it's done in ->update
3) In Asset::File::setSize, fetch the current storage object via getStorageLocation.
4) In Asset::File::update, move the call to update after the filesystem work.  This
   way changes in the size of the permissions file get accounted for.
5) In Asset::update, call setSize after all changes, regardless of whether or not
   properties have changed.
6) In Asset::setSize, refactor out the size calculation and update $self's properties
   cache so that long running scripts have the right size.
2007-06-13 23:06:44 +00:00
..
Image.pm Fixed a bug where due to the lack of a cached Storage object, 2007-06-13 23:06:44 +00:00
ZipArchive.pm fix for editing interfaces to Assets that still display an edit button even if the Asset is edit locked. 2007-04-29 03:16:13 +00:00