Re: K3 update effects on DB

Shad Laws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]> Wed, 27 Mar 2013 15:34:20 +0100
Newsgroups gmane.comp.web.gallery.devel
Message-ID <CA+z51A5_gQnYt4GPeBt78pK4YH=Qd=kWqK-RLe2+zA0UNrJMNg@mail.gmail.com>
Hey Bharat,

Re: the upgrader, that makes sense.  Should I just add a stanza to
GalleryInstaller like usual?

Re: gallery_graphics, in my opinion, I'm not sure it still looks like the
other hook files.  Maybe that was the original intention, but it seems like
it's developed into something else.  In particular:
- the three function names don't have any special meaning outside how their
own module defines them and puts callbacks in graphics_rules (watermarks,
for example, adds graphics_rules without having its own functions)
- the three functions actually run their own events
(graphics_rotate, graphics_rotate_completed, etc... 6 in total)
- other modules can set graphics_rules and do similar things without having
a similar structure (e.g. my image_optimizer module)

I think we have one of a few options:
- Leave the class name as-is.  Change the DB and call it a day.
- Change the class name to something like GalleryImage, since it's
kinda/sorta the layer between the gallery and image modules.  However,
that's not entirely the case since all of the toolkit stuff is still in
Graphics.
- Move the toolkit stuff out of Graphics and into soon-to-be-renamed
GalleryGraphics.  This nicely puts all of the image module stuff into one
class, while leaving all of the graphics_rules and other gallery stuff in
the other.
- Move all of GalleryGraphics into Graphics.  This is a bit simpler than
the option above, but won't give us a nice separation between image and
gallery modules.  Then again, I'm not sure if we care.

I'm split on which of the two last options I like best... thoughts?

Take care,
Shad


On 27 March 2013 00:40, Bharat Mediratta <[email protected]> wrote:

>
> I can't think of any places other than the graphics_rules models.  We can
> cover that in the upgrader code (we'll probably need a slightly more
> special upgrade process for 3.0 -> 3.1).
>
> On the topic of renaming, the point in having gallery_graphics was to make
> it like gallery_event and gallery_task, so shouldn't it live in
> classes/Hook/GalleryGraphics ?
>
>
> On Tue, Mar 26, 2013 at 4:06 PM, Shad Laws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]> wrote:
>
>> Hey everyone,
>>
>> I took a glance through the Gallery DB, and after my recent changes, it
>> *looks* like there are no changes required in the DB to make it work with
>> K3... except one.  In graphics_rules, we have the callbacks to
>> gallery_graphics::resize stored in there, which need to be changed.  While
>> I'm at it, I wouldn't mind renaming that helper (having graphics and
>> gallery_graphics sit next to each other always confused me a little...).
>>
>> Can anyone think of other DB changes we'll need to make to accommodate
>> the K3 upgrade?
>>
>> Take care,
>> Shad
>>
>>
>> ------------------------------------------------------------------------------
>> Own the Future-Intel&reg; Level Up Game Demo Contest 2013
>> Rise to greatness in Intel's independent game demo contest.
>> Compete for recognition, cash, and the chance to get your game
>> on Steam. $5K grand prize plus 10 genre and skill prizes.
>> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
>> __[ g a l l e r y - d e v e l ]_________________________
>>
>> [ list info/archive --> http://gallery.sf.net/lists.php ]
>> [ gallery info/FAQ/download --> http://gallery.sf.net ]
>>
>
>

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d

__[ g a l l e r y - d e v e l ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]