Andy Staudacher
6510fae661
Remove path normalization, the current normalization code didn't go far enough anyway.
2009-01-11 05:28:48 +00:00
Andy Staudacher
5e0d0f546a
MySQL strict fix for Item_Model test. Set all fields that have no default value.
2009-01-11 05:19:09 +00:00
Andy Staudacher
4757126acc
Fix ORM MPTT tests for MySQL strict mode (can't omit Iten type in inserts, it doesn't have a default value).
2009-01-11 05:09:06 +00:00
Andy Staudacher
9406e80c90
Fix Access_Helper tests for MySQL strict mode (can't omit Iten type in inserts, it doesn't have a default value).
2009-01-11 03:28:57 +00:00
Bharat Mediratta
01666c5579
Fix all file structure issues (tabs, bad preambles, etc).
...
Note: installer/install.php is now on the "direct access" list.
2009-01-11 02:27:00 +00:00
Bharat Mediratta
7f52500cf9
Allow .txt.php views
2009-01-11 02:02:43 +00:00
Andy Staudacher
a631fe29f3
i18n refactoring: Rename all _() (reserved by gettext) calls to t().
...
- And refactor printf to our string interpolation / pluralization syntax
- Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-08 17:13:06 +00:00
Andy Staudacher
2917740ba6
First step of i18n refactoring:
...
- Using DB table translations_incomings as translations storage (file cache to be added)
- Removed overly complex i18n code which will be unnecessary with the future compiled cache files
- Added t() as a translation function (global refactoring from _() to t() to follow)
2009-01-08 06:52:18 +00:00
Bharat Mediratta
58c8b3b031
module::event now takes an unlimited number of args
...
added module::incr_var() ftw.
2009-01-08 02:46:09 +00:00
Bharat Mediratta
08c9745086
Make sure that create/update/delete fail without CSRF.
2009-01-04 01:55:07 +00:00
Bharat Mediratta
cd1d023754
Change the preamble for views in two ways:
...
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
have short_tags enabled (the app won't work, but we need to make sure that we're
still secure)
2009-01-01 00:23:29 +00:00
Bharat Mediratta
23105f1359
PhotoID -> PhotoId for consistency
2008-12-31 07:16:38 +00:00
Bharat Mediratta
bfb040a463
Fix a bug where we were accidentally allowing view permissions when
...
allowing or resetting permission further down in the tree. This bug
was introduced when I refactored the view permission cache into the
items table. Updated test to catch it.
2008-12-31 00:47:15 +00:00
Bharat Mediratta
ad719b9b6f
Fully implement the view_full permission.
2008-12-31 00:18:24 +00:00
Bharat Mediratta
eb35afc987
Add module::clear_var()
2008-12-26 01:29:33 +00:00
Bharat Mediratta
3185915264
Split Items_Controller_Test into Photos and Albums tests
2008-12-25 10:14:59 +00:00
Bharat Mediratta
5713e3c66e
Change photo::create() and album::create() to take ORM instances
...
instead of ids.
2008-12-23 04:36:09 +00:00
Chad Kieffer
a98d13e9c7
Update Selenium IDE test case file names.
2008-12-22 00:19:58 +00:00
Chad Kieffer
f2f5a67cde
Removed my local dev url.
2008-12-21 23:59:53 +00:00
Bharat Mediratta
99c481897b
Add "created" and "updated" timestamps to the items table.
2008-12-20 22:49:32 +00:00
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