[MTOS-dev] New Dispatcher On the Way

Hirotaka Ogawa hirotaka.ogawa at gmail.com
Thu Mar 6 09:09:36 PST 2008


On Fri, Mar 7, 2008 at 1:32 AM, Reed A. Cartwright <reed at scit.us> wrote:
> Hirotaka Ogawa wrote:
>  >
>  > I think, TheSchwartz part can be separated from this dispatcher and
>  > realized as a plugin which facilitates post_run callback.
>
>  I see, but I'd have to call a new callback, right?  One that is specific
>  to the dispatcher and not used elsewhere.

Yes and No.

Yes - You can serve the dispatcher with a certain callback hook.  Or
you can create a new post_takedown or post_finish callback hook into
MT core.

No - You can use take_down callback hook as well.  If it should be
used only from the dispatcher, you can check which dispatcher is
facilitated, in the callback function.  So, no new callbacks are
required.

Everything is in your hands.

>  I think that right now, I'll
>  be satisfied with splitting more of the code off into sub functions.
>
>  --
>
>
> *********************************************************
>  Reed A. Cartwright, PhD     http://scit.us/
>  Postdoctoral Researcher     http://www.dererumnatura.us/
>  Department of Genetics      http://www.pandasthumb.org/
>
>  Bioinformatics Research Center
>  North Carolina State University
>  Campus Box 7566
>  Raleigh, NC 27695-7566
>
>  Cuiusvis hominis est errare, nullius nisi
>  insipientis in errore perserverare. --Cicero
>



-- 
Hirotaka Ogawa makes no sense.
http://as-is.net/blog/


More information about the MTOS-dev mailing list