summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
AgeCommit message (Collapse)Author
2010-01-02Remove the Rest_Exception::trigger method.Tim Almdal
2009-12-31Merge branch 'master' into talmdal_devTim Almdal
2009-12-31A more thorough fix for #745 and #940. Stop using the referer toBharat Mediratta
guess how to send the user back. Instead, proxy the originating item id through the edit forms so that we can tell exactly what page we were on when we began editing. If we were viewing the item, then redirect to its new url (in case it changed) to fix ticket #745. But if we were viewing some other item, then just stay on the current page to fix #940. The page_type approach didn't work because you'd have the same "collection" page_type when doing a context menu edit for an album.
2009-12-31Create a Rest_Exception class and use it to convey status to the client ↵Tim Almdal
instead of calling rest::forbidden and other rest helper error messages.
2009-12-31Change the gallery_rest::_validate() method to use the form rules in ↵Tim Almdal
Item_Model. Change the Duplicate errors to sentence case. And generally clean up the flow in _validate().
2009-12-301) Remove the rest::not_found method and replace it with "throw new ↵Tim Almdal
Kohana_404_Exception 2) Don't use the input path to lookup the item via relative_path_cache. Instead use url::get_item_from_uri method.
2009-12-30Rollback the refactoring of the update into a helper method. Also remove the ↵Tim Almdal
refactoring for check for commits
2009-12-30Merge branch 'master' into talmdal_devTim Almdal
2009-12-29Another holdover from the K2.4 conversion. In R2.4 the url::current(true) ↵Tim Almdal
was returning an empty string. This fixes ticket #955.
2009-12-27Clean up validation the check for duplicate names or slugs, finish ↵Tim Almdal
converting the rest API to Kohana 2.4
2009-12-26Forgot to commit local changes to item helper for K2.4Tim Almdal
2009-12-26Merge branch 'master' into talmdal_devTim Almdal
Conflicts: modules/gallery/controllers/albums.php modules/gallery/controllers/movies.php modules/gallery/controllers/photos.php
2009-12-24indentation fix.Bharat Mediratta
2009-12-24whitespace fixBharat Mediratta
2009-12-23When normalizing the rest request don't assume that the additional arguments ↵Tim Almdal
are acutall a path. Leave it up to the handler to determine.
2009-12-23Updated the unit tests to match the current APITim Almdal
Corrected a problem identified with the unit tests... failed if the path was empty on PUT.
2009-12-22Fix where tuple sent to descendant_counts() -- it needs to be wrapped in an ↵Bharat Mediratta
array
2009-12-22Add merge_or_where() to MY_Datatabase_Builder and use that instead ofBharat Mediratta
or_where() for compatibility and convenience. Caught by failing unit tests.
2009-12-22ORM::factory() in K24 does not allow you to specify an alternate keyBharat Mediratta
for lookup. So instead of doing: ORM::factory("foo", array("some_key" => "some_value")) you have to do: ORM::factory("foo"->where("some_key", "=" "some_value")->find()
2009-12-22Update the api so it allows images to be uploaded.Tim Almdal
2009-12-21Added validation to the edit functionality, since we can't trust any inputTim Almdal
2009-12-18Add the parent path to the resourceTim Almdal
2009-12-18Add the name field to remote interface.Tim Almdal
2009-12-17In Kohana 2.4, ORM no longer does the find_all() call for us when weBharat Mediratta
retrieve related ORMs. If we tack a find_all() on the end, it breaks the User_Definition interface so create User_Model::groups() and Groups_Model::users() as glue.
2009-12-17Convert some database queries.Bharat Mediratta
2009-12-17Update all database queries such that we can run "php index.phpBharat Mediratta
package" and generate the same SQL as before.
2009-12-16Make sure we always return a children array for albums.Tim Almdal
2009-12-15Include the thumb, resize and fullsize sizes (height & width) in the ↵Tim Almdal
resource contents returned via the rest interface.
2009-12-15Change what is used as the url to the item.Tim Almdal
2009-12-15Add the resize url to returned resource.Tim Almdal
2009-12-15Updates the the interface based on actually using it.Tim Almdal
2009-12-14Merge branch 'master' into talmdal_devTim Almdal
2009-12-13Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
Conflicts: modules/gallery/helpers/identity.php
2009-12-10Log the entire stack trace when we catch an exception.Bharat Mediratta
2009-12-09Add the REST delete processing for albums/photos/moviesTim Almdal
2009-12-09Implement the RESTful interface for albums/photos/moviesTim Almdal
2009-12-09Refactor the code to check for name or slug conflicts and to update code out ↵Tim Almdal
of {Albums|Photos|Movies)_Controller and into the item helper so we can reuse it from the rest put handler.
2009-12-09Use the relative url cache to look up resources instead of the relative ↵Tim Almdal
path. This allows us to forego the extension as part of the REST url. As well, urls are consistent between normal usage and rest usage.
2009-12-08Add the REST get handler for albums/photos/moviesTim Almdal
2009-12-08Add another error handler "not found" to the rest API.Tim Almdal
Implement the get_album rest request handler.
2009-12-06Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
2009-12-06Update database queries.Bharat Mediratta
2009-12-06Remove the hidden form variable _method which was used in the no longer rest ↵Tim Almdal
controllers.
2009-12-06Further simplifications to viewable(). Stop trying to optimize forBharat Mediratta
the case where we just have one restriction, it's unnecessary.
2009-12-06Get rid of unused _method param in the item edit form.Bharat Mediratta
Fix viewable() to properly OR view restrictions together.
2009-12-06Update more database calls.Bharat Mediratta
2009-12-06Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
2009-12-05Update the gallery module to version 21 in the installer.Bharat Mediratta
2009-12-05Fix whitespace.Bharat Mediratta
2009-12-05Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta