summaryrefslogtreecommitdiff
path: root/modules/g2_import/helpers
AgeCommit message (Collapse)Author
2009-07-02Suppress the filesize error if the thumbnail is not found so we can getTim Almdal
an EMPTY_INPUT_FILE exception which we can then log and continue.
2009-07-01Start of fixing a problem with importing movies w/o a thumbnailTim Almdal
2009-07-01Fix for ticket #357.Tim Almdal
Changed the set the created date as part of the import and change models/comment::save() to not set the creation date if it is already set.
2009-06-30Unlink the old rewritten path files in var/modules/g2_import when weBharat Mediratta
validate the embed path. This resolves an issue with b1 installs which had versions of the rewritten code that were buggy and can be replaced.
2009-06-23Add support for Gallery 2.2.2 style bootstrap syntax.Bharat Mediratta
2009-06-23Gracefully handle the case when the gallery2 instances moves somewhereBharat Mediratta
else (or gets deleted). Fixes ticket #458
2009-06-23Refactor the install/upgrade code to be more flexible.Bharat Mediratta
Add xxx_installer::upgrade($version) method so that upgrade stanzas are separate from install stanzas. In the old code, to do an upgrade meant that you had to re-evolve everything from the initial install because we'd step through each version's changes. But what we really want is for the initial install to start off in the perfect initial state, and the upgrades to do the work behind the scenes. So now the install() function gets things set up properly the first time, and the upgrade() function does any work to catch you up to the latest code. See gallery_installer.php for a good example.
2009-06-20Keywords in G2 are free form. So we don't know what our user used as a ↵Bharat Mediratta
separator. Try to be smart about it. If we see a comma or a semicolon, expect the keywords to be separated by that delimeter. Otherwise, use space as the delimiter. Fixes ticket #446
2009-06-19Swap the order of two lines to make the debug output have the right data.Bharat Mediratta
2009-06-18Make an attempt to catch all situations where loading an item from G2Bharat Mediratta
returns an error, and log them appropriately. This should fix a slew of import failures from corrupt G2 installs.
2009-06-15Don't try to require GalleryCommentHelper.class if the module is notBharat Mediratta
active, since the code may not even be present. This assumes that if the G2 comment module *is* active that the code is present, but that's part of the assumption that the G2 we're importing from is healthy. Fixes ticket #409
2009-06-14Trap gallery2 errors when we try to load an invalid user id and abort ↵Bharat Mediratta
loading that user.
2009-06-12Support imports from multisite G2 installs.Bharat Mediratta
2009-06-12Work around different initialization code in earlier versions of Gallery 2.Bharat Mediratta
2009-06-11Trap exceptions from movie::create() and mark those movies as corrupt.Bharat Mediratta
2009-06-07Improve error handling support for corrupt images and report themBharat Mediratta
appropriately in g2_import.
2009-05-28Prepend all code files we copy from Gallery2 and put into var with ourBharat Mediratta
code preamble for security. Update File_Structure_Test::code_files_start_with_preamble_test to check all the php files in var, too.
2009-05-28Get rid of entire gallery2 session id param from the urls that we use to alertBharat Mediratta
users about images that failed to import.
2009-05-27Commit an egregious hack to work around the fact that both Gallery 2Bharat Mediratta
and Gallery 3 have a class named Gallery. Clone a subset of the Gallery 2 files and munge them so that we can rename the Galery 2 version to G2_Gallery. Also, update the disclaimer in Admin > Settings > Gallery 2 Import.
2009-05-27Update all references to the core application to now point to theBharat Mediratta
gallery module. This type of mass update is prone to some small bugs.
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-20Don't import non-viewable image types (eg: psd). Swap in a brokenBharat Mediratta
image instead so that we at least have a target for comments. Fixes ticket #294
2009-05-19Import album highlights. Fixes ticket #221.Bharat Mediratta
2009-05-19If there's a missing source image during import, swap in our "brokenBharat Mediratta
image" placeholder and keep on trucking. Oh, and notify the admin. Fixes ticket #287
2009-05-17Skip over empty import modes. Fixes ticket #227Bharat Mediratta
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-12Gracefully handle duplicate groups. Fixes ticket #280Bharat Mediratta
2009-05-12Deal with the user-entered g2 embed.php path a little more sanely so that if ↵Bharat Mediratta
the user enters the path to G2 itself, we find the embed.php path from there.
2009-05-12Beautify the status textBharat Mediratta
2009-05-12Skip the copy if the watermark module is enabled *and* there's a watermark.Bharat Mediratta
2009-05-12Import keywords as tags.Bharat Mediratta
Refactor the general flow of g2_import_task::import() to simplify it and make it more sensible. It had gotten a little overgrown. It's still a little overgrown, but I don't see an easy way to simplify it from here.
2009-05-12Import tags.Bharat Mediratta
2009-05-12Deal gracefully with the case that the Gallery 2 instance didn't haveBharat Mediratta
any resizes (or thumbnails). Fix a case where we were over-weighting the max dimension for square resizes and thumbs.
2009-05-11Import comments. This was a lot easier than I thought it would beBharat Mediratta
2009-05-11Framework for importing comments -- we don't actually do the import yetBharat Mediratta
2009-05-11Add some commentsBharat Mediratta
2009-05-11Don't attempt to interact with comments if the Gallery2 comment module is ↵Bharat Mediratta
not installed. Resolves ticket #276
2009-05-10Only run copy_matching_thumbnails_and_resizes() when we're doing an import, ↵Bharat Mediratta
else it interferes with thumbnail/resize generation during regular imports
2009-05-10Change wording to avoid breaking File_Structure_TestBharat Mediratta
2009-05-10Make the code that copies g2 derivatives more robust if the g2 data file ↵Bharat Mediratta
doesn't exist.
2009-05-10Fix a bug where when we copied over the g2 thumb or resize, we weren'tBharat Mediratta
saving its dimensions to the item. Also, import originationTimestamp as captured field.
2009-05-09Sigh.. fix it the *right* way.Bharat Mediratta
2009-05-09Oops, add in a missing ] (thanks kb7sei!)Bharat Mediratta
2009-05-09Usability and performance improvementsBharat Mediratta
Significantly speed up the process by copying Gallery2 thumbnails and resizes wherever possible instead of regenerating them. This requires us to figure out the dimensions of the original G2 derivative and make sure that it matches in some reasonable way. To allow users to take advantage of this, calculate the optimal thumb and resize size to set in G3 to match what was used in G2. While we're at it, give the user some idea of how much data is available in G2 to import.
2009-05-07Add debug log strings with the G2 stack trace when there's a failure in a g2 ↵Bharat Mediratta
call.
2009-05-06Don't fail when trying to import site admin group. Resolves ticket #249Bharat Mediratta
2009-05-05Return an array from available_tasks() when unconfigured.Bharat Mediratta
Fixes ticket #247.
2009-05-02Cache the entry in our in-memory map when we map a g2 item to a g3Bharat Mediratta
item in the database. This fixes the problem that the import fails the first time around because the various groups are mapped in the db but aren't available in the request.
2009-04-23Fix bug in the item_before_delete() event handlerBharat Mediratta
2009-04-23Remember to import album highlightsBharat Mediratta