Commit Graph
261 Commits
Author SHA1 Message Date
Tim Almdal 7bb4b6029d Add a MY_file class that extends the file helper by creating an unlink method that deletes a file or an album directory.
Modify Items_Controller::_delete to call this new helper method when deleting an item
2008-12-03 22:39:57 +00:00
Bharat Mediratta d8511f2fde Implement two tests 2008-12-03 19:10:23 +00:00
Bharat Mediratta c3478675cd Fix a bug where we weren't actually deleting permissions (hooray for unit tests!) 2008-12-03 19:09:56 +00:00
Tim Almdal 27a9c14d27 If the the post and get arrays don't contain a _method parameter, then use the request::method() to determine the actual request method (i.e. delete doesn't show up in either places) 2008-12-03 17:33:18 +00:00
Bharat Mediratta efc6270295 Test stubs 2008-12-03 17:17:59 +00:00
Bharat Mediratta f114814c03 Move the form html into the controller 2008-12-03 05:59:39 +00:00
Bharat Mediratta 39499cdf2e Add /welcome/form/add/photos to give you the add photo form. 2008-12-03 05:40:59 +00:00
Bharat Mediratta e03bb0f7c3 Re-enable access_cache propagation now that we've patched the MySQL driver. 2008-12-03 04:28:14 +00:00
Bharat Mediratta 718ac67a02 get rid of a stray space that was breaking the File_Structure_Test 2008-12-03 04:17:02 +00:00
Bharat Mediratta c1886aab88 Temporarily disable some code to get tests to pass. 2008-12-03 04:05:24 +00:00
Bharat Mediratta 37758d15de Drop the right tables at uninstall time 2008-12-03 03:43:50 +00:00
Bharat Mediratta db5bc20500 Fix a bad copy/pasted comment 2008-12-03 03:18:43 +00:00
Tim Almdal 2e42a5ea8c Remove the variable from inside _() 2008-12-02 21:37:06 +00:00
Tim Almdal 3953dde2c6 The rearrange module will now add an album if you drag the "new album" onto the album tree. I haven't had a chance to figure out why the form does get any styling or why a textarea is no included as a list item. 2008-12-02 21:25:15 +00:00
Bharat Mediratta ea11562e32 Oops, this was missing from the last fix. 2008-12-02 04:54:37 +00:00
Bharat Mediratta ae4c828b06 Fix a problem in _update_access_cache() where if the intent is
default, we weren't properly propagating ALLOW where necessary.
2008-12-02 04:38:45 +00:00
Bharat Mediratta 52e63e7f75 Tighten up ul.permissions 2008-12-01 23:48:07 +00:00
Bharat Mediratta ed2cb2a86d Fix profiler settings in the scaffolding 2008-12-01 10:40:40 +00:00
Bharat Mediratta 2eed685883 style the permission tree a little tighter 2008-12-01 10:27:36 +00:00
Bharat Mediratta 5c303aa07b Add access::reset() so that you can specify your intent to use the
parent's permissions.

Update scaffolding to demonstrate that it works.
2008-12-01 09:57:03 +00:00
Bharat Mediratta 88a70cbc04 Clean up styles a bit to make it more obvious what's going on. Show
edit permissions too to demonstrate that we're doing something
different for the different type of permissions.
2008-12-01 09:02:46 +00:00
Bharat Mediratta e3d7877d79 Add @todos 2008-12-01 09:01:10 +00:00
Bharat Mediratta 91c4bda1ec Prototype access control model. There's much left to do, but it's a
working implementation.
2008-12-01 08:50:00 +00:00
Bharat Mediratta 6b03b798f3 Move rearrange HTML generation into welcome.php so that we gracefully
handle the case where the DB is not installed yet.
2008-11-30 21:39:23 +00:00
Bharat Mediratta 4271f7702a Add access model (not fully baked yet).
Update scaffolding to allow addition of just albums (helpful for testing permissions)
2008-11-29 22:47:15 +00:00
Tim Almdal 7ae004f76f The gui part of rearranging albums and photos on the welcome page. Haven't finished the ajax back end to actually do the move, but thought i'd put the gui up so people can play 2008-11-29 20:02:30 +00:00
Tim Almdal 70de32ebb4 Insure that the page and offset refere to valid items 2008-11-29 17:08:42 +00:00
Tim Almdal 4c2d4abb1c Remove debugging statements 2008-11-28 21:55:26 +00:00
Tim Almdal 6a76d6f747 Dynamically create the list of available modules. This permits new modules to be added without having to update the config.php file 2008-11-28 21:22:34 +00:00
Bharat Mediratta 8b6ed6c477 Create module::event() which runs Gallery events. It works by
convention.  To respond to the "photo_created" event in the gmaps
module, you create modules/gmaps/helpers/gmaps_event.php containing
class gmaps_event which has function photo_created.

Renamed all events from gallery.foo.bar to foo_bar
Updated tag module to use new convention.
2008-11-28 19:37:01 +00:00
Bharat Mediratta 89c4dadec2 Rename module::get_list() to module::installed() 2008-11-28 18:39:18 +00:00
Bharat Mediratta 4d71975f37 Add credits theme callback, point the powered-by link at GMC 2008-11-28 09:46:29 +00:00
Bharat Mediratta 2c86723942 Add an easy way to add a bunch of servers from the server side 2008-11-28 05:45:35 +00:00
Tim Almdal 3fa12655dd Correct parameter on gallery.album.created event firing 2008-11-28 04:26:18 +00:00
Bharat Mediratta 1239e38e45 Move the form drawing code back into form.html.php -- I'm going to
take a shot at fixing it up in the view file so that it's mostly HTML,
not mostly PHP.  If that fails, I'll move it back into a helper.
2008-11-28 03:09:18 +00:00
Bharat Mediratta 18412bb14e Add tag() function 2008-11-28 01:18:45 +00:00
Tim Almdal 828f23896f Rename item events and create events for comment create, login, logout, user creation. I probably forgot some, but its a start. 2008-11-28 00:51:38 +00:00
Tim Almdal 3ad9b6174a Add event plumbing to allow the tag module to be notified when a photo is created. Eventually this will be used to parse the image meta data and extract tags; 2008-11-28 00:19:08 +00:00
Bharat Mediratta bc210a708e Set resize to 640x480 for now to avoid breaking the default theme layout 2008-11-27 22:08:00 +00:00
Tim Almdal 6bc9c5868b Create a form_helper class containing the function Draw_Form so we don't have to always check to see if the DrawForm method is already defined in pages that could have multiple forms. 2008-11-27 16:33:41 +00:00
Tim Almdal bac4ff2046 1) Create a Theme_View class that combines the functionality of the Theme class with the View class.
2) Only define the form.html.php::DrawForm method once if there are multiple forms on the page (i.e. comments and add tags)
2008-11-27 16:19:07 +00:00
Bharat Mediratta 723eb2f611 Move the ADMIN global nav option into the core module and only show it if we're logged in as an admin user 2008-11-27 11:43:48 +00:00
Bharat Mediratta 34a286ae90 Add navigation_top() and navigation_bottom() insertion points
Move "My Gallery" navigation tab into the user module and only show it
if you're logged in
2008-11-27 11:33:45 +00:00
Bharat Mediratta d909fc1070 Make tags look a little better. 2008-11-27 10:25:50 +00:00
Bharat Mediratta c95c17b133 Centralize logging around installing/uninstalling modules. 2008-11-27 09:45:26 +00:00
Bharat Mediratta 7e5f59bcb7 Add children_count to album/photo controllers for consistency with tags 2008-11-27 05:59:37 +00:00
Bharat Mediratta 8e33f5d7b9 Add page_type() function 2008-11-27 04:58:38 +00:00
Bharat Mediratta e3fa1c8acd Link to the albums in the album tree. 2008-11-26 23:10:15 +00:00
Bharat Mediratta 691faa0e83 Draw an album tree in the access -> permissions tab. 2008-11-26 23:07:37 +00:00
Bharat Mediratta 974f9f7788 Add a new "tag" page type.
Create the concept of "page types" which let us specify the kind of
page that we're rendering in high level terms.  Currently there are
three page types: album, photo and tag.

The tag page type uses slightly different variables.  It has a $tag
but no $item.  Adjust all sidebar_block() functions to avoid printing
stuff that's dependent on the item if there is no item.

Simplify the tag code to stop trying to fake an item.

Update the theme slightly to use $item and $tag where appropriate
(notably, for making the <title> element).
2008-11-26 21:50:45 +00:00