Commit graph

75 commits

Author SHA1 Message Date
Colin Kuskie
522d87fed2 forward port of File/Image - Storage/Storage::Image object alignment fix 2007-06-22 23:26:13 +00:00
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
Frank Dillon
9a8207fee0 Fixed bugs in storage causing multiple storage locations to be created any time a file was created or updated. Fixed a bug which prevents files from potentially breaking on operating systems that are not case sensitive. 2007-05-04 19:19:01 +00:00
Colin Kuskie
8b7bafe1ae 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
Graham Knop
58018d5d69 More image uploading fixes. Copying/pasted code. Should probably be refactored a bit. 2007-04-27 17:12:50 +00:00
JT Smith
2ae31ce34b - fix: WeatherData asset not displaying properly
- rfe: Weather-Data not only for US-Cities
 - rfe: WeatherData Asset - Convert to International format
2007-02-25 18:55:10 +00:00
Colin Kuskie
a9e4de8ffa add missing i18n labels from ZipArchive template 2007-01-25 04:41:26 +00:00
Colin Kuskie
2c246c06cc fix a bug where updating the storageId in File Type assets did not update the cached storageLocation. Also fixed the Thumbnail Macro test 2006-12-09 06:05:26 +00:00
Drake
0d1c1ea96a Make Asset::getContainer no longer change the session asset. 2006-11-07 00:30:44 +00:00
Drake
d0bacc8988 Make File assets work with the exporter. This means not using the streaming
mechanism.  This isn't optimal; should find a way to use the streaming
mechanism iff we know that there's going to be a live HTTP session on the
other end and not just a filehandle.
2006-10-13 20:01:48 +00:00
JT Smith
f8d22359d5 Images now create revisions as you resize them, so you can roll back to a
previous size.
adjusted roy's test because it's not accurate
2006-09-27 21:19:19 +00:00
Drake
c438d55310 Normalized signature of Asset::duplicate. This involved going through
existing overrides and callers for that method and making sure they followed
the correct signature.  Various related cleanups.

This should fix those bugs with collaboration systems refusing to be copied
or deployed as packages.
2006-09-23 01:33:46 +00:00
Roy Johnson
c7a4c73e6b Changed behavior of Image assets when admin mode is on so that browsing to an images url no longer takes you to the assets edit screen, but rather to the image it's self. 2006-08-27 18:55:14 +00:00
Wouter van Oijen
2d9565775f POD fixes and removing debug output 2006-07-11 09:05:22 +00:00
JT Smith
33272fd76c - All assets now have an autoGenerateForms property just like wobjects per the
rough edges discussions in Community IRC.
 - fix: not set UTF-8 in setup page
2006-05-31 23:01:53 +00:00
Wouter van Oijen
684f08649d Fixing stuff 2006-05-21 14:49:40 +00:00
Jukka Raimovaara
1f78c2b077 Added internal redirect
(Is there a way to get content_type that wouldn't require File::MMagic?)
Apache2::SubRequest's method lookup_file coused segfault in apache, so I scrapped that and used File::MMagic to to content type determing
Also fixed credit and added a currentPage.rankIsN variable to navigation
2006-04-30 13:07:00 +00:00
JT Smith
2f24cd3f3c [ 1475220 ] some 6.99 templates have double slashes 2006-04-28 16:59:32 +00:00
JT Smith
da9c26d72c fixed redirect bugs in file, image, and zip archive
added cache control headers to style
added cache control headers to snippet
added server side caching to snippet
2006-04-15 16:07:04 +00:00
JT Smith
e4392f7449 new caching system to replace old page cache 2006-04-05 20:46:57 +00:00
JT Smith
b55a7252e8 removed border= from image tags 2006-03-21 21:13:36 +00:00
JT Smith
468c5171cf changed border= to style="border: for better xhtml compliance 2006-03-04 08:07:17 +00:00
JT Smith
46fa7e78e7 began adding streaming support for view method 2006-01-30 21:26:22 +00:00
Matthew Wilson
4a3121960f removal of dumpSession. 2006-01-26 05:39:16 +00:00
Matthew Wilson
2069da5fdb tons of bug fixes. 2006-01-18 14:41:12 +00:00
Matthew Wilson
09483e18c5 a ton of $session fixes (thanks to Colin), and a new $session checker, that supposedly, shouldn't be needed now. It can be backed out, however, easily. 2006-01-16 22:45:21 +00:00
Matthew Wilson
128f265678 finally, the last of this round of syntax fixes. 2006-01-15 21:02:00 +00:00
Matthew Wilson
f2cccdff9f more oodles of changes. 2006-01-15 18:19:44 +00:00
Matthew Wilson
65823b1f53 oodles of fixes. 2006-01-15 15:56:17 +00:00
Matthew Wilson
19bce8eaf6 bunches o syntax fixes. 2006-01-14 21:06:52 +00:00
JT Smith
a3adaee3a0 removing unnecessary use lines 2006-01-12 22:27:20 +00:00
JT Smith
1e5034acd6 refactored storage api to handle new session stuff 2006-01-12 19:15:34 +00:00
Colin Kuskie
01d95a265e new i18n api requiring $session 2006-01-12 17:49:20 +00:00
JT Smith
b3974c0cd5 refactored WebGUI::HTMLForm api to use new session system 2006-01-11 16:53:02 +00:00
JT Smith
9520b4ce48 migrating datetime api for session 2006-01-10 17:06:41 +00:00
JT Smith
a194408513 changing copyright year 2006-01-09 23:51:04 +00:00
JT Smith
d470a7cdd4 more session related changes 2006-01-09 20:43:02 +00:00
JT Smith
2866a2c873 converting assets to new session system 2006-01-02 03:12:54 +00:00
Colin Kuskie
f5347b1314 WebGUI/Operation/Help.pm, refactor _getHelpName
All other files, make sure that either assetName, macroName or topicName is defined
in the i18n file.  Make sure that all Assets have assetName defined in their
definition sub.
2005-12-10 23:33:25 +00:00
Colin Kuskie
caeff5db5f fixing more broken i18n labels 2005-12-05 14:52:54 +00:00
Colin Kuskie
01dcd2b416 fix broken i18n labels and add i18n labels to Matrix 2005-12-05 05:31:07 +00:00
Colin Kuskie
99df1f414e Form inheritance work for lists, removal of $session{os}{slash} 2005-12-01 20:46:55 +00:00
JT Smith
cb4729f7e7 added zip archive and in/out board assets 2005-11-19 20:54:15 +00:00
Colin Kuskie
903ccd0777 manual merge of changes from 6.7.8 for File,Image assets 2005-10-31 04:41:38 +00:00
Colin Kuskie
56e5b7ef2b table of contents with internationalization 2005-10-10 05:22:37 +00:00
JT Smith
c4b3e4092d Merging changes from 6.6.4
Added new definition features to wobjects and assets.
2005-07-21 01:17:05 +00:00
Colin Kuskie
e19f50a481 internationalize getName for all Assets, bugfix 1239601 2005-07-18 16:26:52 +00:00
Colin Kuskie
529d132025 hover help 2005-06-22 03:11:00 +00:00
Matthew Wilson
1f3330f270 *** empty log message *** 2005-06-14 14:53:57 +00:00
Matthew Wilson
7e9cd9b089 - fix [ 1206045 ] Max Image Size don't work 2005-06-13 17:44:52 +00:00