summaryrefslogtreecommitdiff
path: root/modules/gallery
AgeCommit message (Collapse)Author
2010-01-24Log validation errors.Bharat Mediratta
2010-01-23Fix for bug 984, consistently interpret installed / available locales as array.Andy Staudacher
On the current hostgater setup (PHP 5.2.12), locales::available() was returning an array and isset($locales->$code) would always (silently) return false. Choosing array over stdClass since count($someStdClass) will always return 1, and not the number of object members.
2010-01-23Correct the javascript so it will find the "Continue" button in other ↵Tim Almdal
languages than english.
2010-01-23Add a user_menu method to the Admin_View and then use this method to get theTim Almdal
user menu. Since the information displayed is identical in both admin and theme views, it makes sense to combine the generation to it is done in a common location.
2010-01-23UpdatedBharat Mediratta
2010-01-23Update tests for recent REST changes.Bharat Mediratta
2010-01-23Don't use ORM_MPTT::move_to directly, it's protected.Bharat Mediratta
2010-01-23Increase the size of the 'select photos' button so that it doesn't wrap and ↵Tim Almdal
set the size of the underlying flash object.
2010-01-22If the userid/password combination, render the full page instead of just ↵Tim Almdal
printing the form. Fixes ticket #980.
2010-01-22Specify the height and overflow-y on l10n-client translation element. fixes ↵Tim Almdal
ticket #899.
2010-01-22Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
2010-01-22Trap any errors that may occur when trying to install a new identity ↵Tim Almdal
provider and then reinstall the current one.
2010-01-22Change the check_environment method in the module helper and the module ↵Tim Almdal
installers to can_activate to reflect that it is doing more than just checking the environment.
2010-01-22Remove the identity manager screens and controller as alterntive identity ↵Tim Almdal
providers are installed in the admin module screen.
2010-01-22Disable the continue button after clicking so it can only clicked once.Tim Almdal
2010-01-22Refactor the identity provider installation in to a common helper method ↵Tim Almdal
(change_provider) with an initialization callback.
2010-01-22Treat identity providers just like other modules and use the admin_module toTim Almdal
install and switch to a different identity provider.
2010-01-22Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
2010-01-22Change "fetch translations" task to fetch them in batches.Andy Staudacher
The request limit was in place already, but the client didn't respect it before, leading to unhappy users in case they had lots of 3rd party modules installed, or more than 2-3 locales enabled. This is all taken care of now.
2010-01-22Moved to Item_Rest_Helper_Test.phpBharat Mediratta
2010-01-22Return the url of the newly created item from post().Bharat Mediratta
Don't try to access ORM::$changed -- it's protected.
2010-01-22Updated tests to pass after recent refactor of gallery_rest -> item_rest.Bharat Mediratta
2010-01-22Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
2010-01-22Reshape the rest code to be more consistent with regards toBharat Mediratta
relationships. Now when you view a resource, it has 4 top level elements: url: the url of this resource resource: array of key value pairs describing the resource members: array of urls to members of this collection relationships: array of array of members. Relationships are a special type of collection that links two different resources together. To remove a relationship, just DELETE its url. To create a relationship, POST to its collection. Individual modules can add their own relationships to any resource via a callback mechanism. Example: Array( [url] => http://g3.com/rest/item/1 [resource] => Array ( [id] => 1 [album_cover_item_id] => 4 [captured] => [created] => 1264056417 [description] => [height] => ... ) [members] => Array( [0] => http://g3.com/rest/item/2 [1] => http://g3.com/rest/item/3 [2] => http://g3.com/rest/item/4 [3] => http://g3.com/rest/item/5 ... ) [relationships] => Array( [tags] => Array ( [0] => http://g3.com/rest/tag_item/2,1 [1] => http://g3.com/rest/tag_item/23,1 ) ) )
2010-01-21Use Unicode instead of HTML entity (since the l10n server normalizes this ↵Andy Staudacher
way and rejects submissions that change under the normalization step)
2010-01-21Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
2010-01-21Internationalize all strings in admin_modules.hmtl and corrected comments.Tim Almdal
2010-01-21We don't need CSRF in Rest_Controller::__call() because we use access tokens.Bharat Mediratta
2010-01-21Make sure that we actually don't have permissions, to avoid contamination w/ ↵Bharat Mediratta
other tests.
2010-01-21Exclude modules/gallery_unit_test/views/kohana/error.phpBharat Mediratta
2010-01-21Fix a minor bad expectation.Bharat Mediratta
2010-01-21Can't call ORM_MPTT::move_to() externally, so call Item_Model::save() instead.Bharat Mediratta
2010-01-21The admin module controller allows modules to provide a check_environment methodTim Almdal
which is called prior to installation. The method allows the module to provide an error message or warnings if the module can not be installed or activated without issues. The admin module controller also will fire a pre_deactivate event, which allows modules to indicate issues that may arise be deactivating the specified module. These messages are displayed in a dialog box prior to installation in order to allow the gallery administrator to determine the appropriate action before proceeding. Lays the foundation for implementing a fix for ticket #937
2010-01-21Reload the album after adding the photo so that MPTT pointers are correct.Bharat Mediratta
2010-01-20Whitespace.Bharat Mediratta
2010-01-20Two fixes:Bharat Mediratta
1) Don't call ORM_MPTT::move_to() directly. Use the new model-based-validation approach of changing the parent_id and saving. 2) Item_Model::parent() can return null; check for it.
2010-01-20Make move_to protected since we don't want folks calling it onBharat Mediratta
Item_Model. If there's a need to make this public, we should override it in Item_Model and throw an exception there.
2010-01-20Remove debug code.Bharat Mediratta
2010-01-20Oops, bug in save() -- we weren't returning the saved value!Bharat Mediratta
2010-01-20Fix maintenance tasks / language admin for bug introduced earlier by no ↵Andy Staudacher
longer casting in ORM. Task->done is now a string, boolean false is stored as integer 0 and loaded as string "0". On the client side that's interpreted as truthy in JavaScript. Fix: cast "0" to (bool) before encoding to JSON.
2010-01-20Delete MY_ORM::original(). We did not have proper containment toBharat Mediratta
generate $original when we needed it, resulting in inconsistent behavior.
2010-01-20Stop using MY_ORM::original().Bharat Mediratta
2010-01-20Throw Kohana_Exception instead of Exception on access denied, since that may ↵Bharat Mediratta
bubble all the way up
2010-01-20Stop using MY_ORM::original(). It's got very odd semantics and we areBharat Mediratta
not capturing all cases for setting and resetting $original, which leads to some weird and hard to reproduce behavior. Instead, if we need the original just reload it from the database. This may result in a somewhat excessive load in places, but we'll have to fix that in a later optimization pass.
2010-01-20Throw Rest exceptions, not regular exceptions.Bharat Mediratta
2010-01-20Forbidden is a 403, not a 503.Bharat Mediratta
2010-01-19Extend Gallery_Unit_Test_Case instead of Unit_Test_Case.Bharat Mediratta
2010-01-19Fix some validation checks to check to see if the original was loadedBharat Mediratta
before deciding whether or not we changed a value. Change valid_name to be cascading, not parallel.
2010-01-19Move data initialization into the constructor so that it happensBharat Mediratta
before validate() is called, which is important with our two phase web controllers. Make valid_parent smarter about moving existing items, vs new items.
2010-01-19Change "filename" to "name" in the edit album form. I'd rather haveBharat Mediratta
consistency between field names than deal with underlying issues with Forge bitching about the "name" property.