Re: [Mailman-Developers] Is there a stupid Python trick to save me?
For the IncomingRunner, it should be easy. Create a subclass of IncomingRunner, and override the _get_pipeline() method. Then override the QRUNNERS variable in your mm_cfg.py to use your new subclass rather than IncomingRunner. Again, untested, but a bit easier to do, and much safer on the brain the above two half-baked ideas.
Well, if I wanted to hack the code, lots of things would be easy... but I was thinking of "some codified thing that lets an admin do customization things" rather than "unsupported code hacks". I was probing whether or not others thought there was a need; primarily you.
If we're talking about custom pipeline modules, we're talking about Python coders, so that's not a horrible thing, but: since modules are already so separate, it would be useful, perhaps, to have some sort of "insert this into the pipeline" mechanism that is also separate and robust wrt changes like GLOBAL_PIPELINE changes.
I suppose subclassing isn't so bad, but it's a bit heavier mechanism than I was thinking...but that may just be a function of me thinking like a procedural programmer. :)
"DM" == Dan Mick <dmick@utopia.West.Sun.COM> writes:
DM> If we're talking about custom pipeline modules, we're talking
DM> about Python coders, so that's not a horrible thing, but:
DM> since modules are already so separate, it would be useful,
DM> perhaps, to have some sort of "insert this into the pipeline"
DM> mechanism that is also separate and robust wrt changes like
DM> GLOBAL_PIPELINE changes.
DM> I suppose subclassing isn't so bad, but it's a bit heavier
DM> mechanism than I was thinking...but that may just be a
DM> function of me thinking like a procedural programmer. :)
:). Let's keep thinking about it. -Barry
At 08:11 PM 3/13/02 -0800, Dan Mick wrote:
If we're talking about custom pipeline modules, we're talking about Python coders, so that's not a horrible thing, but: since modules are already so separate, it would be useful, perhaps, to have some sort of "insert this into the pipeline" mechanism that is also separate and robust wrt changes like GLOBAL_PIPELINE changes.
Particular since one day we might have people writing cool custom pipeline modules that other people who really shouldn't be messing with code want to run...
participants (3)
-
barry@zope.com
-
Dan Mick
-
Ron Jarrell