| Summary | Move gallery attributes from datatree |
| Queue | Ansel |
| Type | Enhancement |
| State | Resolved |
| Priority | 1. Low |
| Owners | Michael Rubinsky <mrubinsk (at) horde (dot) org> |
| Requester | Michael Rubinsky <mrubinsk (at) horde (dot) org> |
| Created | 01/10/2008 (279 days ago) |
| Due | |
| Updated | 01/15/2008 (274 days ago) |
| Assigned | |
| Resolved | 01/15/2008 (274 days ago) |
| Attachments | 2008_01_07_add_galleries.sql ![]() 2008_01_07_sql_galleries[1].php ![]() BigAnselPatch[1].diff ![]() |
| Milestone | |
| Patch | No |
State ⇒ Resolved
server for about a week now with light family usage and I'm fairly
confident there are no overt errors. Hope that didn't just jinx me...
forward, and I would say, go and commit it. If you feel more confident
stabilizing it in CVS first, before letting it go to the masses, you
could commit it to a branch.
New Attachment: BigAnselPatch[1].diff
last time.
This patch should now apply cleanly to current CVS code.
There is still more to do, but I wanted to get input on the general
design and get this into CVS before I make more changes...
New Attachment: 2008_01_07_sql_galleries[1].php
correct one. One more reason I want to get this into CVS ;)
New Attachment: 2008_01_07_add_galleries.sql
Summary ⇒ Move gallery attributes out of datatree
New Attachment: 2008_01_07_sql_galleries.php
Assigned to Michael Rubinsky
New Attachment: BigAnselPatch.diff
Queue ⇒ Ansel
Summary ⇒ Remove gallery attributes out of datatree
Type ⇒ Enhancement
Priority ⇒ 1. Low
State ⇒ Feedback
In a nutshell, Horde_Share is still used for permissions and for
gallery hierarchy.
New class Ansel_Storage contains most DB related code (still some
sprinkled around Ansel.php and Tags.php) and is resposible for
creating a properly scoped Ansel_Share object. Also contains all
get/list type methods that client code interacts with. The existing
Ansel_Gallery class has been renamed to Ansel_Gallery_Share and a new
Ansel_Gallery object has been added...all client code interacts with
the Ansel_Gallery object and if needed, it delegates to the
Ansel_Gallery_Share object..
Probably more confusing to try to explain it...so attached are the
various patches.
Just a not about the upgrade script - it does add one new attribute to
existing datatree gallery structure, but does not delete any of the
data that has been moved to the new structure....I'll probably put
that into another upgrade script that should be run after the first
upgrade has been successful to ease in rolling back if needed.