Added Tree types and get_bugdir_subscribers to becommands/subscribe.py.
authorW. Trevor King <wking@drexel.edu>
Thu, 23 Jul 2009 15:27:59 +0000 (11:27 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 23 Jul 2009 15:27:59 +0000 (11:27 -0400)
commitcff3dd5c32cb67b47d2712cf6a1b51e7b6eead4b
treef2ca214c2656675f10b83a0b2ebaa49c91279593
parente4fb67ebd5dff9e33e0d2a842cbb102e7d66946d
Added Tree types and get_bugdir_subscribers to becommands/subscribe.py.

The Tree subclass SubscriptionType may be a few more lines to setup,
but they should be really easy to extend and will automatically keep
the longhelp and type handling in sync.

An example extension for bugdir types would be
  all -> assigned -> <user>
to subscribe only to bugs being assigned to the specified user.  You'd
have to loosen the currently strict InvalidType checking to make that
work, but the current type-tree handling would be up to the task.

Also a bit of reorganizing to hide the private functions.
becommands/subscribe.py