Commit Graph
434 Commits
Author SHA1 Message Date
Bharat Mediratta 57ef43afdb Change TINYINT(2) to SMALLINT for compliance (thanks Romain LE DISEZ) 2009-05-10 18:56:49 +00:00
Bharat Mediratta 99ca6133b0 Force the 'GD Version' key to exist 2009-05-09 16:37:03 +00:00
Bharat Mediratta 98e60731b2 Allow sorting by Capture Date. 2009-05-07 01:28:10 +00:00
Bharat Mediratta fc6bdbbbc8 Grab photo capture date and captions from EXIF/IPTC data.
- Add a "captured" column to the items table.
- Pull the DateTime EXIF field and put it into the captured column
- Pull the Caption EXIF & IPTC fields and put them into the description
  field if there was not already a value there
2009-05-07 01:18:31 +00:00
Bharat Mediratta a676ac8e60 Don't try to make a new photo the album cover unless we can edit the parent album 2009-05-03 21:14:18 +00:00
Bharat Mediratta f2479cc65a Mark functions as static 2009-05-02 21:13:13 +00:00
Bharat Mediratta 4b790f5b76 Revert r20668; if we call our helper 'gallery' then it interferes with g2_import since it uses the Gallery2 embed interface which loads up G2's Gallery class as well. Grumble. 2009-05-02 20:49:09 +00:00
Bharat Mediratta 5950f49210 Rename core helper to gallery helper to indicate that it's more of an app-wide helper. 'core' doesn't make as much sense 2009-05-02 20:37:45 +00:00
Bharat Mediratta b4c9a97050 Create item helper and move move_item(), remove_album_cover() and
make_album_cover() functions into it.
2009-05-02 20:34:02 +00:00
Bharat Mediratta 0fd82598b5 Move make_album_cover and remove_album_cover out of Item_Model and
into the core helper.  Clean up interactions so that when we remove an
album cover we pick a new one, or clean out the old album cover if
there are no other choices.
2009-05-02 20:14:13 +00:00
Tim Almdal 71cac8bf15 Forgot these when i created the make_album_cover method 2009-05-01 23:32:35 +00:00
Tim Almdal 820cbdf1c3 Refactor the creation and removal of the album covers into
make_album_cover and remove_album_cover methods in Item_Model.
Usage: $photo->make_album_cover()  $album->remove_album_cover()
2009-04-29 15:57:29 +00:00
Bharat Mediratta 33775f9fb0 Throw an exception in graphics::resize() if the input file is empty 2009-04-22 19:50:38 +00:00
Tim Almdal 1956a6ae95 Refactor the move functionality into a helper function so it can be
called from organize
2009-04-22 04:20:05 +00:00
Bharat Mediratta 0fe4398765 whitespace cleanup 2009-04-18 23:07:08 +00:00
Bharat Mediratta f243e8d41c Be graceful if exec() is disabled 2009-04-17 09:50:53 +00:00
Jakob Hilden 8db55de4f0 changed order of form fields in photo and album forms so that the confusing "name" field is not on top anymore
changed "name" label to "Filename" for photos and "Directory Name" for albums
2009-04-12 17:52:26 +00:00
Bharat Mediratta 670e0d8f85 Fix indentation. 2009-04-12 06:41:43 +00:00
Bharat Mediratta ff732d9c7e Fix the spelling of "appearance_menu" and update user_menu so that the
user/groups admin menu option appears again.
2009-04-09 02:25:27 +00:00
Tim Almdal 523c467eed Fixes issues with Server Add:
1) Fixes Ticket #208
2) Fixes Ticket #190
3) Fixes an unticketed issue where two items could collide when
creating the thumbnail and/or resize. For example, loading a.flv and
a.jpg would have generated the same thumbnail image.  This change adds
a random value to the name to avoid conflicts.
4) Added item::__set() to clear the relative path if the name changes
2009-04-08 15:11:55 +00:00
Bharat Mediratta 63edb37076 Fix up the quick-edit code on the photos page. Everything but "move"
is implemented.  Can't do move easily because it's tricky to handle
the post-move redirect.
2009-04-06 08:10:42 +00:00
Bharat Mediratta 292b51ddd3 Rework the links section of the "Welcome to Gallery3" block so that
the links work and it's more helpful.

In the process, rename the Presentation menu to be Appearance because
that makes more sense to me (and at least one other user who wrote
about it on -devel).
2009-04-06 03:14:13 +00:00
Bharat Mediratta c936eebcf7 Don't do graphics detection in core_installer::install() because that
gets run at scaffolding::package() time, not on the target machine.
Instead, create a core module variable to trigger running
graphics::choose_default_toolkit() on the first admin login after install.

Fixes ticket #206.
2009-04-05 20:43:05 +00:00
Tim Almdal f1eec57221 Add a weight column to the items model. Change the album ordering to
use this as the default instead of id.  This prepares the way for
manual reordering in the organize functionality.
2009-04-05 16:57:51 +00:00
Bharat Mediratta 6883762238 Completely task-ify the localization scanning code and restore the
incoming_translation key cache.  The only part of this that is not
broken down is the l10n_client::fetch_updates() part.
2009-04-02 23:56:00 +00:00
Chad Kieffer a57d0d93a8 Add quick edit pane to resize images, ticket #189 2009-03-31 05:14:40 +00:00
Bharat Mediratta a142aee609 Convert language updates over to task form. It's still very rough,
the task only has one step from zero to 100.
2009-03-26 07:10:47 +00:00
Bharat Mediratta 15eb1a9c8d Replace iterators with stack based scanner, which we can serialize into the task context. 2009-03-26 06:32:48 +00:00
Bharat Mediratta 09243aa72e Normalize code style. 2009-03-26 04:44:12 +00:00
Bharat Mediratta 78943402b2 Convert the L10n scanner from a library to a helper.
In order to make the class static, I had to remove the index cache.
I'll restore that and cache the index keys in the task context in a
subsequent change.  For now, I've put in a @todo to add the caching
back in.
2009-03-26 04:36:00 +00:00
Tim Almdal 96df4419f4 Revert r20492 2009-03-26 03:17:11 +00:00
Bharat Mediratta 11bfacba08 Normalize exception format. 2009-03-26 03:02:18 +00:00
Bharat Mediratta e3aab08f8d Fix typo, whitespace. 2009-03-26 02:50:50 +00:00
Tim Almdal 944276fdfe Fix for ticket #184. Set the default album sort order to "Title" 2009-03-25 17:21:11 +00:00
Bharat Mediratta 0a4bce3f67 Remove debug line. 2009-03-25 02:13:01 +00:00
Bharat Mediratta d432cba2cb change version from "3.0 Alpha 3" to "3.0 pre-beta svn" 2009-03-24 21:09:37 +00:00
Andy Staudacher ed7175092c Refactor all translation strings that have ambiguous placeholders.
E.g. "%link_startClick here%link_end" is now '<a href="%url">Click here</a>'.

Note: This isn't always the best solution. E.g. consider "Foo <a href='%url' class='gDialogLink'>bar</a>." Now the translator has to deal with 
preserving CSS classes too...
2009-03-21 07:44:46 +00:00
Bharat Mediratta 06baa24dd6 Set our version to 3.0 Alpha 3 and add 'logs' as a dir we create at install time 2009-03-20 08:21:43 +00:00
Bharat Mediratta 61d8a143ea Rejigger the way we do reinstalls while Kohana is running.
core_installer::install() now takes an $initial_install param that
allows us to enforce that we're doing a clean install.  Use this in
both the scaffolding and the unit test code.

Greatly simplify the scaffolding uninstall/reinstall code.
2009-03-19 02:35:51 +00:00
Tim Almdal 6b5d395d59 Fix for ticket #153. The sort column was not not initialized for
movies or photos.  Turns out that when you go to delete, ORM tries to
check for children and apply the sort order.
2009-03-18 19:39:34 +00:00
Tim Almdal 30cb537c31 Fix failed unit test: private methods are required to begin with an underscore(_) 2009-03-18 16:45:18 +00:00
Tim Almdal d2006069bb Remove trailing ?> 2009-03-18 16:36:57 +00:00
Tim Almdal 9d65379160 Remove semi-colons from single sql statements and correct anoter
instance of {items` which won't get prefixed properly
2009-03-18 03:36:18 +00:00
Andy Staudacher 222f6e2e23 Functional l10n_client / server interaction:
- Get / verify API Key from l10n server
 - Submit translations
 - Fetch translations / updates

Reference: Tasks: 75, 76, 55

TODO: Move out of core (and a series of other tasks).
2009-03-18 00:53:44 +00:00
Bharat Mediratta 1ab5a76924 Treat calls to install() with TEST_MODE set to be initial installs. At least for now. 2009-03-17 18:17:55 +00:00
Bharat Mediratta 8458eba279 Switch the locale::$locales data structure to be an array instead of a
stdClass because we're not allowed to asort() stdClass objects in PHP
5.2.6.
2009-03-16 09:08:12 +00:00
Bharat Mediratta 6f0ddb4057 Set the sort_column and sort_order for the root album 2009-03-16 08:48:34 +00:00
Bharat Mediratta eac4e72a3b Oops, fix a typo. 2009-03-16 08:34:20 +00:00
Bharat Mediratta 54e07d0769 Get rid of the extra robust code we had in here to make the
scaffolding work when the Gallery wasn't installed yet.  Now we force
users through the installer.
2009-03-16 08:05:07 +00:00
Bharat Mediratta c3e70ecfa6 Initialize $result in get_html() 2009-03-16 08:01:46 +00:00