[Bug 937154] Re: bin/disabled.py is nonfunctional

Barry Warsaw 937154 at bugs.launchpad.net
Tue Mar 27 15:50:44 CEST 2012


On Mar 26, 2012, at 08:03 PM, Andrea Crotti wrote:

>  Should it provide exactly the same command line interface?

Not necessarily.  Looking at the code now I think the long options are
probably fine, but I'm not sure the short options are great (e.g. -o is
usually reserved for output to a file; not relevant for this particular
script, but I don't like appropriating commonly understood options if at all
possible).  Also --unknown won't be useful now; that was a nod to some bug in
MM2.1 we never figured out. ;)  If you make it a bin/mailman subcommand, you
won't need to re-implement -C here.

>- Does it need to be independent from the rest of the code or should
>  it be added to the mailman commands??

I think I would make it a bin/mailman subcommand.  One of the main use cases
for this script is to implement a cron job that site admins can enable to
process users in various statuses.  But I think a cron could invoke a
subcommand just fine.  Still, that use case should inform its cli.

>Anything else that I should know?

One thing to keep in mind is that in mm3, I'm trying to reduce the amount of
logic in the actual commands.  Meaning, it would be better to move as much as
possible into core services, and have the command do as little as possible,
over cli parsing and such.


** Tags added: easy

-- 
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/937154

Title:
  bin/disabled.py is nonfunctional

To manage notifications about this bug go to:
https://bugs.launchpad.net/mailman/+bug/937154/+subscriptions


More information about the Mailman-coders mailing list