Commit Graph
2621 Commits
Author SHA1 Message Date
Tim Almdal 2e221a84cc Change how request input is processed.First the input is no longer json encode, All the get variables are loaded, then the post variables if the request is a post, and then the path is extracted from the uri. 2009-12-18 14:59:44 -08:00
Tim Almdal c804279647 Add the parent path to the resource 2009-12-18 12:58:23 -08:00
Tim Almdal eb55a3c977 Add the name field to remote interface. 2009-12-18 12:21:10 -08:00
Tim Almdal cd0bf67441 Merge branch 'master' into talmdal_dev 2009-12-16 20:14:03 -08:00
Bharat Mediratta 02b3c4e704 Adjust for the fact that movies have JPG thumbnails. Fixes ticket 2009-12-16 15:18:08 -08:00
Tim Almdal 61c1a8bfbe Make sure we always return a children array for albums. 2009-12-16 10:14:31 -08:00
Bharat Mediratta b4a35a8e2c Show the right edit form for movies. 2009-12-16 09:37:28 -08:00
Tim Almdal 96968b4181 Include the thumb, resize and fullsize sizes (height & width) in the resource contents returned via the rest interface. 2009-12-15 21:04:19 -08:00
Tim Almdal 95e812067e Change what is used as the url to the item. 2009-12-15 20:42:01 -08:00
Tim Almdal 7f5d5b0470 Add the resize url to returned resource. 2009-12-15 12:24:22 -08:00
Tim Almdal 22e813d0be Updates the the interface based on actually using it. 2009-12-15 10:57:10 -08:00
Tim Almdal 3f8d17fcf1 Merge branch 'master' into talmdal_dev 2009-12-14 06:59:00 -08:00
Bharat Mediratta 3d1f166fe5 Log the entire stack trace when we catch an exception. 2009-12-10 21:20:18 -08:00
Tim Almdal d521faf63d Add the REST delete processing for albums/photos/movies 2009-12-09 16:04:08 -08:00
Tim Almdal dfc556e8a6 Implement the RESTful interface for albums/photos/movies 2009-12-09 12:06:45 -08:00
Tim Almdal c3a0f419c6 Refactor the code to check for name or slug conflicts and to update code out of {Albums|Photos|Movies)_Controller and into the item helper so we can reuse it from the rest put handler. 2009-12-09 09:50:57 -08:00
Tim Almdal 367f2218f6 Use the relative url cache to look up resources instead of the relative 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-09 08:41:38 -08:00
Tim Almdal 3c30d595ae Add the REST get handler for albums/photos/movies 2009-12-08 23:28:50 -08:00
Tim Almdal 9319f37c4f Correct the error message when the item is not found; remove the check for no request_key (access_token) as athat is treated as public permissions 2009-12-08 23:27:43 -08:00
Tim Almdal 837396ca28 Change the url mapping so that path to the is part of the url
The request key is put in the X-Gallery-Request-Key header
The HTTP method can be override by using the X-Gallery-Request-Method header
Normalize the request data so that it doesn't matter where it comes from (HTTP get or HTTP post request)
2009-12-08 18:06:16 -08:00
Tim Almdal 6fd04069ae Add another error handler "not found" to the rest API.
Implement the get_album rest request handler.
2009-12-08 12:50:13 -08:00
Tim Almdal fa0663d7df Rename the backing table from rest_keys to user_access_tokens
Implement an api to format the errors and success messages
Removed the custom routing... urls are now /rest/<module_name>/<resource>
2009-12-08 09:19:48 -08:00
Tim Almdal b0de1fe1d9 Delete Form_Label.php which was accidently committed. 2009-12-07 20:46:18 -08:00
Tim Almdal 71be6cf239 The rest framework that the new gallery3 remote interface will be built on. At the moment, there are no handlers to perform any functionality. 2009-12-07 18:11:26 -08:00
Tim Almdal cfbbc22f7c Merge branch 'master' into talmdal_dev 2009-12-06 21:32:37 -08:00
Tim Almdal 16bed1ffd5 Remove the hidden form variable _method which was used in the no longer rest controllers. 2009-12-06 21:32:27 -08:00
Tim Almdal 61d64c12a2 Merge branch 'master' into talmdal_dev 2009-12-06 10:04:02 -08:00
Bharat Mediratta 0bb742ef33 Use NULL instead of actual values in the vars table, so that var tweaks result in smaller diffs. 2009-12-05 21:21:08 -08:00
Bharat Mediratta 1f3567ec04 Update the gallery module to version 21 in the installer. 2009-12-05 21:08:10 -08:00
Bharat Mediratta 320a569c10 Fix whitespace. 2009-12-05 20:56:16 -08:00
Tim Almdal dfc082ad5f Merge branch 'master' into talmdal_dev 2009-12-05 12:09:31 -08:00
Tim Almdal fcbf824c05 Merge branch 'master' of git@github.com:gallery/gallery3 2009-12-05 12:09:25 -08:00
Tim Almdal 4a6b62c285 Revert "Correct inconsistent capitalization on "Server Add""
This reverts commit f4810345b4.
Bharat is a correct as in that "Server Add" is a proper name and should
be exempt from the capitalization rules.
2009-12-05 12:07:24 -08:00
Bharat Mediratta 145ec2f38f Merge branch 'master' of git@github.com:gallery/gallery3 2009-12-05 12:01:02 -08:00
Bharat Mediratta 03ea1ee701 Change the default image to be the full size so that the slideshow shows the big one. 2009-12-05 12:00:50 -08:00
Tim Almdal f4810345b4 Correct inconsistent capitalization on "Server Add" 2009-12-05 09:13:04 -08:00
Tim Almdal 267b3a1623 Make the rendering of the Theme Options page consistent between the first request and any errors 2009-12-04 13:48:52 -08:00
Tim Almdal 8ca69cffbb Merge branch 'master' into talmdal_dev 2009-12-04 11:42:37 -08:00
Bharat Mediratta 5c107be903 Reload relevant models after acquiring a lock so that we don't make
database calls based on obsolete data, which can lead to data corruption.

Fixes ticket #926.
2009-12-04 11:13:20 -08:00
Bharat Mediratta c9e6869c68 Rename the "upload_limit" variable to "simultaneous_upload_limit" for
clarity, since it only limits concurrency not the number of actual uploads.

Move the default-setting code into the upgrader so that we avoid
creating the variable as a side-effect of the view (personal
preference to avoid side-effect code since it's led to problems in the
past).
2009-12-02 19:08:13 -08:00
Tim Almdal 1ab8ac305b Allow users to override the number of simulatenous uploads. This setting won't appear until after they have attempted to upload at least once and have issues. 2009-12-02 12:09:34 -08:00
Bharat Mediratta 6fa880777c Beter fix for #925. 2009-12-01 13:37:07 -08:00
Bharat Mediratta f9ebe009c3 Use the real mime type for movies when we're requesting the full movie
instead of a thumbnail.  Fixes ticket #925, thanks to lsowen.
2009-12-01 13:34:40 -08:00
Bharat Mediratta 883fda313d Fix a typo that was breaking the home page (doh!)
$this->_show() -> $this->show()
2009-12-01 00:08:12 -08:00
Bharat Mediratta 852653ef24 Clean up item routing a bit.
1) The new default route is "albums", and Albums_Controller::index() does the right thing
2) Items_Controller redirects to the appropriate specific controller
3) All item controllers now have show() instead of _show(), so that
   the routing code in url::parse_url() can get to it.  But that code is protected against
   receiving bogus requests.
2009-11-30 13:57:50 -08:00
Bharat Mediratta 299da7b54f Don't allow the extra "/?" sequence (ie: "/index.php/?kohana_uri=...") in the generated .htaccess files. 2009-11-30 10:59:00 -08:00
Bharat Mediratta 1b41ad8c42 Don't use PathInfo based urls to reroute access protection. Fixes
ticket #922.
2009-11-29 22:47:33 -08:00
Bharat Mediratta 01bad461df Publish theme_edit_form and theme_edit_form_completed events so that themes can piggyback on the regular Admin > Appearance > Theme Options page. 2009-11-29 12:39:21 -08:00
Bharat Mediratta 3d4672ba88 Give the theme a chance to handle theme function callbacks as well. 2009-11-28 23:48:38 -08:00
Bharat Mediratta f3981bbaa9 Rework the theme loading code to allow themes to be treated as Gallery
modules, and have an admin subdirectory that is treated like a Kohana
module (as distinct from a Gallery module).

The main advantage of creating the separate admin subdirectory is that
we will not load an admin theme and a site theme at the same time.
We'll only load a few specialized bits of the site theme while the
admin theme is active.

Concrete examples. A site theme named "xxx":
- will receive events at themes/xxx/helpers/xxx_event.php
- will have working controllers at themes/xxx/controllers/xxx.php

If theme xxx has an admin subdir, then in admin mode it:
- will receive events at themes/xxx/admin/helpers/xxx_event.php
- will have working controllers at themes/xxx/admin/controllers/xxx.php
2009-11-28 23:25:07 -08:00