summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-01-22Create symmetrical relationship collections: item_tags and tag_itemsBharat Mediratta
Now when we represent a relationship collection we can refer to it in proper semantic terms.
2010-01-22Don't try to access ORM::$changed externally; it's protected.Bharat Mediratta
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-22Reload items after saving so that we convert their members to strings.Bharat 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-22Return the url of the newly created item from post().Bharat Mediratta
2010-01-22New tests for tag_item_restBharat Mediratta
2010-01-22Updated tests to pass after recent refactor of tag_rest.Bharat Mediratta
2010-01-22output_type --> outputBharat Mediratta
2010-01-22Updated tests to pass after recent refactor of tags_rest.Bharat Mediratta
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-21Guard against division by zero.Bharat Mediratta
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-21Actually deny permissions in ↵Bharat Mediratta
delete_item_from_tag_fails_without_permissions_test()..
2010-01-21whitespace.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-21Simplify the test using the test helper.Bharat Mediratta
2010-01-21Add random_group().Bharat 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-21Convert the slideshow module to use the new check environment and ↵Tim Almdal
pre_deactivate api methods.
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-20improve comment.Bharat Mediratta
2010-01-20Use the exception itself to print out a nice text message.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-20Guard against missing/empty $description.Bharat Mediratta
2010-01-20Move the error page to the expected location for K24.Bharat Mediratta
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-20Fix typo: edit_user -> add_user.Bharat Mediratta
2010-01-20Stop using MY_ORM::original().Bharat Mediratta
2010-01-20Stop using MY_ORM::original().Bharat Mediratta
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-20Add random_tag().Bharat Mediratta