The nice thing about the XML approach is that it's explicit.

I pretty much always split my MG XML into separate files, for the sake
of organization, so the suggested modification to the event-handlers
block would tie in quite nice.

A nice thing about XML is that you don't *have* to define the element
if it's not required by the DTD ;).

There's always CS for advice based on event names* (tho it would be
nice if one didn't have to extend the MG core to wrap the event
handler stuff, and it was in the default ModelGlue.xml instead, like
the orm stuffs).

*Example name-based advice is stuff like public.home, private.home,
sometemplate.mainpage, public.sometemplate.home, etc.. with SES for
pretty-ness and whatnot.

-- 
If our life is unhappy it is painful to bear; if it is happy it is
horrible to lose, So the one is pretty equal to the other.
Jean de la Bruyere

On Tue, May 19, 2009 at 8:20 PM, Bob wrote:
> I'm not prepared to wage war over it, but I suggest that the simple version
> (allowing for a single list of default event types in the model-glue config)
> is not really a change to the framework.
> Event types are new to MG3, so now's the time to make sure that they are
> implemented in the most useful way. I truly believe that this would be a
> very useful feature and really is in keeping with the spirit of event types
> (which is to save on having to specify the same logic in multiple places).
> I agree that the suggestions that result in added complexity to the XML file
> might not be the best route, even though they may extend the usefulness of
> the feature.
> So I suppose my stance is that default event types should be made available,
> but perhaps only in the simplest way.
> Cheers,
> Bob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to