Tim Almdal
d0dd6650be
When normalizing the rest request don't assume that the additional arguments are acutall a path. Leave it up to the handler to determine.
2009-12-23 13:13:03 -08:00
Tim Almdal
d622d1aa4f
Updated the unit tests to match the current API
...
Corrected a problem identified with the unit tests... failed if the path was empty on PUT.
2009-12-23 09:32:32 -08:00
Tim Almdal
cbe5a89a9f
Update the api so it allows images to be uploaded.
2009-12-22 12:32:27 -08:00
Tim Almdal
fd7990735c
Added validation to the edit functionality, since we can't trust any input
2009-12-21 11:25:11 -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
61c1a8bfbe
Make sure we always return a children array for albums.
2009-12-16 10:14:31 -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
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
16bed1ffd5
Remove the hidden form variable _method which was used in the no longer rest controllers.
2009-12-06 21:32:27 -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
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
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
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
Bharat Mediratta
b677778253
Expose theme::$is_admin
2009-11-28 15:42:11 -08:00
Bharat Mediratta
22149b52c3
Move the theme fallback checking into theme::load_themes() so that
...
we're calling it once per request.
2009-11-27 17:12:13 -08:00
Tim Almdal
dc67cf6481
Remove the REST_Controller and assorted baggage. Completes ticket #917
2009-11-25 13:02:14 -08:00
Tim Almdal
15cf6870d5
remove the photo::get_add_form method as its not used
2009-11-25 12:47:00 -08:00
Tim Almdal
2d5c232c42
Refactor the album, movie and photo handling to remove the REST_Controller. Partial fix for ticket #917
2009-11-25 12:46:04 -08:00
Bharat Mediratta
befb824420
Fixes #898
2009-11-20 21:16:59 -08:00
Tim Almdal
f5b0ce1f47
Revert "Currently Admin_Theme_Options controller assumes that all the themes will provide the same values. This change corrects that assumption and moves the management of the theme options, including creating the form and updating the theme options into the theme."
...
This reverts commit 1692ee1308 .
2009-11-19 11:44:09 -08:00
Tim Almdal
57adefc5ba
Revert "Create theme::get_var(), theme::set_var() methods to set the options of the active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme."
...
This reverts commit 26114972c3 .
2009-11-19 11:44:01 -08:00
Tim Almdal
26114972c3
Create theme::get_var(), theme::set_var() methods to set the options of the active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme.
2009-11-18 15:36:13 -08:00
Tim Almdal
1692ee1308
Currently Admin_Theme_Options controller assumes that all the themes will provide the same values. This change corrects that assumption and moves the management of the theme options, including creating the form and updating the theme options into the theme.
2009-11-18 14:37:49 -08:00
Tim Almdal
4d4e81ca26
Create a helper to load the theme information from theme.info
2009-11-18 08:38:11 -08:00
Bharat Mediratta
b8e94302bd
Tweak load_themes() to match exactly "/admin" or the "/admin/" prefix,
...
but not just the "/admin" prefix because that breaks if you add an
image like "admin_photostream".
2009-11-17 15:36:02 -08:00
Bharat Mediratta
1067e68292
Redesign the way that we consider page types to create buckets of page
...
types, and a subtype for specifics. Currently the top level bucket
collection, item, other
Here are the core subtypes so far:
collection: album, search, tag
item: movie, photo
other: login, reset, comment-fragment, comment
It's legal to create new page_subtypes whenever you want. Use the
appropriate page_type to get the coarse grain behavior that you want.
2009-11-17 14:04:45 -08:00
Tim Almdal
bf4c518bb5
Store the directory, files and translation cache in the gallery3 cache instead of trying to store it in the task. It is possible with lots of modules and lots of incoming translations to go beyond the 64K limit in the task context. Possible fix for #886 .
2009-11-16 14:25:25 -08:00
Bharat Mediratta
100a66d861
Fix a bunch of little issues in the version 16, 17, and 18 upgraders.
...
- Add a missing loop in 15->16 causing ticket #881
- Comment the blocks correctly
- Remove unnecessary loop from 18->19
2009-11-14 12:03:41 -08:00
Tim Almdal
0fe32a61f6
Standardize the name of the blocks.
2009-11-13 13:56:05 -08:00
Tim Almdal
def88149cc
Undo using the md5 hash of the module name and block_id, so duplicate blocks are no allowed again
2009-11-13 09:14:39 -08:00
Tim Almdal
79f700ef9f
Change the keys of the block arrays in block manager to be a md5 hash of module_name:block_id. This allows easier lookup of blocks to remove when modules
...
are being deactivated. Change the module activation/deactivation to call (activate|deactivate)_blocks instead of just the sidebar blocks. This insures
that when a module is deactivated any admin dashboard blocks are removed as well the site sideboard blocks. Fix for ticket #876 .
2009-11-12 13:13:34 -08:00
Tim Almdal
d8beb6f530
First cut at replacing swfupload with uploadify. Probably need to review the css and remove extra swfupload selectors. Also changed the dialog so tags can be entered for all the files being uploaded. Probably need to add better start processing so the batch is started before the first image is loaded. Maybe add a module variable so the number of simultaneous uploads can be initiated (currently hard ocded to 10.
2009-11-09 13:54:55 -08:00
Tim Almdal
26f8240e34
Revert "Try an new approach to extending forms. Create an extend_form event. For the first attempt replace the comment_add_form and item_add_form events."
...
This reverts commit 809e738536 .
2009-11-09 11:52:43 -08:00
Tim Almdal
6d57d4308b
Merge branch 'master' into talmdal_dev
2009-11-07 21:52:40 -08:00
Tim Almdal
47e0d91fcc
Remove debugging statement
2009-11-07 21:51:57 -08:00