Chad Kieffer
aed68bfa9f
I'm tired of clicking. Here are a few Selenium IDE tests.
2008-12-18 07:00:47 +00:00
Bharat Mediratta
8630d61051
Change the album thumbnail/resize from _album.jpg to .album.pjg
...
because the leading underscore confuses the Kohana router.
2008-12-17 04:55:49 +00:00
Bharat Mediratta
fc7b78492b
Separate thumbnails out into var/thumbs. This clears up some ambiguity in Item_Model and simplifies
...
file_proxy. It also means we can stop munging file names in the var/resizes hierarchy.
In the process, rename "thumbnail" to "thumb" everywhere in honor of
Chad (well, ok because it's shorter)..
2008-12-17 04:45:35 +00:00
Bharat Mediratta
e82b08db20
Make the profiler output more legible by adding some padding to the table.
2008-12-16 04:45:52 +00:00
Bharat Mediratta
dc08917345
Fix a bug where we were not deleting the .htaccess file on access::reset()
2008-12-16 02:31:13 +00:00
Bharat Mediratta
61618af0db
Create and delete .htaccess files based on the view permissions for
...
the group::everybody() user.
2008-12-16 01:04:19 +00:00
Bharat Mediratta
3d2fc86604
Permission only function on albums.
2008-12-16 00:30:05 +00:00
Bharat Mediratta
b6363bcb03
Update to reflect changes in Kohana ORM relationship code.
...
Now you must call ORM::save() after ORM::add() and ORM::remove().
2008-12-15 20:49:05 +00:00
Bharat Mediratta
af8c74f612
Fix a bug where parent permissions were not getting inherited to newly
...
created albums and photos.
2008-12-13 20:06:20 +00:00
Bharat Mediratta
8ba5ea3cf8
Make sure that access::can fails if the item is not loaded
2008-12-13 19:49:33 +00:00
Tim Almdal
80792d4fb1
Set the resize and thumbnail maximum dimension into the module vars table
2008-12-13 05:01:12 +00:00
Bharat Mediratta
a3142246e4
Move the view permission cache directly into the item table for efficiency. Unit tests ftw!
2008-12-12 06:54:48 +00:00
Chad Kieffer
ffbb164934
New scaffold images. Landscape, portrait, square.
2008-12-12 06:54:30 +00:00
Bharat Mediratta
2cf3233f54
Get rid of all pseudo users and pseudo groups, while preserving all
...
other functionality. This makes our user/group and access code
fully consistent.
2008-12-12 00:59:30 +00:00
Tim Almdal
773d7024eb
Correct test
2008-12-11 16:09:49 +00:00
Tim Almdal
e84a0ebe46
Change the name of the implmentation of module parameters to module vars
2008-12-11 16:06:22 +00:00
Tim Almdal
7e5935d532
Create a module parameter table. This will be useful if a module wants to store information, but is not enough to warrant a table of its own
2008-12-10 19:44:58 +00:00
Bharat Mediratta
18a6614a11
Change all access API methods to take ORMs instead of ids. This will
...
minimize reloading objects from the database.
2008-12-10 07:05:49 +00:00
Bharat Mediratta
e62103b8d9
Move code to delete users and add/remove users from groups into the
...
model.
2008-12-09 08:47:30 +00:00
Bharat Mediratta
f69f3967ea
move user::delete() to User_Model::delete()
2008-12-09 00:07:26 +00:00
Bharat Mediratta
e3ad42a276
Add access::can() which verifies that the user belongs to a group that has the
...
given permission.
2008-12-09 00:02:20 +00:00
Bharat Mediratta
bd3a472be7
Rename access::can() to access::group_can()
2008-12-08 10:46:53 +00:00
Bharat Mediratta
85239ec750
Ignore gallery_unit_test/views/kohana_*.php
2008-12-08 10:46:06 +00:00
Bharat Mediratta
b878ed174d
Refactor Menu code to create allow you to create menus using a
...
chainable factory interface and retrieve them by ids. Streamlined the
HTML creation code a little bit in the process, moved the basic menu
functionality into Theme_View and created the option to have different
menus other than site_navigation().
2008-12-08 06:14:34 +00:00
Tim Almdal
ee2299d6d0
Restructure Menu processing to respect the differnent types of menu items (Menu's, Menu_Link, Menu_Dialog)
2008-12-08 00:23:33 +00:00
Tim Almdal
954fcf0342
Merge gallery3/branches/menus back into gallery3/trunk
2008-12-07 19:45:46 +00:00
Bharat Mediratta
5d23a6515d
Finish writing unit tests for Access. No bugs found!
2008-12-07 10:56:44 +00:00
Bharat Mediratta
bf7ab8904a
Change ORM_MPTT::add_to_parent() to take an ORM instead of an id so
...
that it's consistent with ORM_MPTT::move_to()
2008-12-07 08:46:44 +00:00
Bharat Mediratta
055aa04497
Rename moveTo to move_to and extend the test a bit.
2008-12-07 08:23:22 +00:00
Tim Almdal
8d1790a0b4
* Add a moveTo unit test
...
* Pass the module::event(..., $data) by reference to the handlers
2008-12-05 04:56:33 +00:00
Bharat Mediratta
bae905a4cb
Improvements to access helper.
...
o Rename access::remove_group() to access::delete_group() for
consistency.
o Wrote more unit tests
o Tests found a bug in access::remove_item() .. yay!
2008-12-04 06:40:35 +00:00
Bharat Mediratta
375e7c675e
Implement ORM_MPTT::delete() properly.
...
Inline ORM_MPTT::_grow() for now
Rewrite ORM_MPTT tests to be domain specific; they no longer use album/photo helpers.
2008-12-04 05:47:05 +00:00
Bharat Mediratta
89a346c1e1
Rename Directory_Helper_Test to Dir_Helper_Test
2008-12-04 05:45:00 +00:00
Bharat Mediratta
24cbff29cc
Replace grow_test and constrict_test with add_hierarchy_test and
...
delete_hierarchy_test.
Our tests will be more robust if we test the public API and not the
internal private functions. If we get to the point where we have to
test the private functions, we should probably move those functions
into their own separate class with a public API.
2008-12-04 05:15:21 +00:00
Tim Almdal
5c095cbd78
Add unit tests to test growing and contracting the left and right pointers
...
Added a delete method to ORM_MPTT that contracts the tree when an item is deleted
2008-12-04 01:12:44 +00:00
Bharat Mediratta
ccee9854c2
Rename file::unlink() to dir::unlink(). This creates an API that is
...
clearer about its actions, otherwise we may accidentally blow away an
entire hierarchy when we think we're deleting a single file (there's a
reason why rm won't let you delete dirs that aren't empty!)
Name it "dir" instead of "directory" because apparently "directory" is
already reserved.
Move the delete call out of Items_Controller and into the model. The
model is responsible for keeping state integrity, not the controller.
2008-12-03 23:31:10 +00:00
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
efc6270295
Test stubs
2008-12-03 17:17:59 +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
Andy Staudacher
38e1eef547
Some code audit fixes and adding some directory separator normalization code to make it work on Windows as well.
2008-11-26 20:21:39 +00:00
Andy Staudacher
66f51f3c17
Initial commit of the translation class, I18n_Core and some tests.
...
- Port of Ruby's I18n gem (http://rails-i18n.org/ )
- Added proper plural handling on top of that.
- Using CLDR 1.6's plural form data
- See I18n_Test for example usage.
- Not integrated into G3 templates yet. Probably adding __() as alias for I18n::instance->translate().
- No specific plan yet where localization files should live.
2008-11-26 11:46:56 +00:00
Jozef Selesi
bb53a0b99f
* Added test for rest::request_method().
...
* Implemented delete in comment.
2008-11-22 01:31:15 +00:00
Jozef Selesi
88f799be6f
Fixed a bug in the REST controller dispatcher and added a test case that excercises it.
2008-11-21 21:07:36 +00:00
Bharat Mediratta
66192bb214
Break dispatch tests up into little ones.
2008-11-20 06:37:26 +00:00
Tim Almdal
6fd261c8b0
Add unittest and caching for ORM_MTPP::descendants
2008-11-20 06:05:22 +00:00
Tim Almdal
4c587bdb01
Limit File_Structure_Test to only apply the regex expression if views is contained in the path name.
2008-11-20 05:24:24 +00:00
Tim Almdal
604e58346b
Add unittest and caching to ORM_MTPP::descendants_count
2008-11-20 05:06:24 +00:00
Jozef Selesi
c3fc1cb7ec
* Added HTTP status constants and helper functions to REST helper.
...
* HTTP header setting in comment module now going through REST helper API.
* Fixed items controller test.
* Fixed user installer test.
* Fixed _create() handling in the REST controller.
* Fixed routing for edit and add forms.
* Added some tests for the REST controller.
* Set svn:eol-style to LF on a bunch of files.
* Added preamble to MY_Forge.php.
2008-11-20 01:25:29 +00:00
Tim Almdal
103bd8e8d2
Add the original item height and width to the item table
2008-11-19 22:45:30 +00:00