Commit Graph
5668 Commits
Author SHA1 Message Date
Tim Almdal 213f718e59 Merge branch 'master' into talmdal_dev 2009-12-18 15:00:01 -08:00
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
Bharat Mediratta 6f063aceac Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev 2009-12-18 14:27:58 -08:00
Bharat Mediratta 86e0bc863a Use url::base() instead of item::root()->url because we can't be sure
that will work (if your database is sitll at Beta 1, you don't have
the slug column, for example).
2009-12-18 14:26:15 -08:00
Bharat Mediratta 9af0a4e59c Convert a database call. 2009-12-18 13:36:43 -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
Bharat Mediratta 046382c3e7 Remove some unused references to Database::instance() 2009-12-18 11:27:44 -08:00
Bharat Mediratta 338af4a722 Database::escape_str() is now Database::escape(). 2009-12-18 01:16:27 -08:00
Bharat Mediratta ca1f7d0da7 Convert a database query. 2009-12-18 01:12:16 -08:00
Bharat Mediratta c10386fe87 Convert html::specialchars() to html::chars() 2009-12-18 01:05:02 -08:00
Bharat Mediratta 0736cf203b In Kohana 2.4, ORM no longer does the find_all() call for us when we
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-17 21:32:53 -08:00
Bharat Mediratta 9d19e272d6 Convert some database queries. 2009-12-17 21:16:51 -08:00
Bharat Mediratta 8883d1605a Convert some more database queries. 2009-12-17 21:16:37 -08:00
Bharat Mediratta 9b75b85e71 Update all database queries such that we can run "php index.php
package" and generate the same SQL as before.
2009-12-17 21:05:58 -08:00
Bharat Mediratta 2aba8c4bff Simplify add_table_prefixes. In Kohana 2.4, it returns the bare table
name, not the prefixed one so this makes our logic easier.
2009-12-17 21:05:47 -08:00
Bharat Mediratta c99a75b5d1 Improve the exception error message. 2009-12-17 09:16:44 -08:00
Tim Almdal cd0bf67441 Merge branch 'master' into talmdal_dev 2009-12-16 20:14:03 -08:00
Bharat Mediratta f431d7e12e Convert a database call. 2009-12-16 18:04:44 -08:00
Bharat Mediratta 86467363c2 Convert a database call. 2009-12-16 18:03:23 -08:00
Bharat Mediratta 9b3b9c6da6 Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev 2009-12-16 17:58:49 -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 0d4c808b8e Merge branch 'master' into talmdal_dev 2009-12-16 10:14:55 -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
Bharat Mediratta 4566c299c1 Convert some database calls. 2009-12-16 09:24:38 -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 064a24b897 Convert a database call. 2009-12-13 17:15:59 -08:00
Bharat Mediratta 8c03c7a073 Convert some database calls. 2009-12-13 17:15:12 -08:00
Bharat Mediratta cb55eea0f3 Convert a database query. 2009-12-13 17:03:07 -08:00
Bharat Mediratta c65cd702fc Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev
Conflicts:
	modules/gallery/helpers/identity.php
2009-12-13 16:52:18 -08:00
Chad Kieffer 7515b424e0 Tighten-up white space for error message/icon on forms. Fix icon/white-space on g2_import messages, fixes #765. 2009-12-12 17:13:24 -07: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
Bharat Mediratta d5c35210b9 Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev 2009-12-06 21:38:47 -08:00
Bharat Mediratta a6dbd25cf1 Update database queries. 2009-12-06 21:38:09 -08:00