On Sep 24, 2012, at 06:00 AM, Jimmy Bergman wrote: >> Note that there is an IBanManager utility which you can use to add and >> remove list-specific or global bans. Probably better to use this utility >> in the REST API rather than adding a new interface to IMailingList. > >You must have misread the patch, I actually use the IBanManager. I extended >it to be able to return a list of banned emails for a list, since >the semantics wouldn't be RESTy if i couldn't list. You're right, sorry about that. BTW, I'm probably going to change the way IBanManager works, to be a bit more like IAcceptableAliasSet. This would mean you'd adapt an IMailingList to an IBanManager, and then we could drop the mailing_list parameters to the various calls. The one difference is that we'd allow you to adapt None to IBanManager to get the global bans. Don't worry about all that though. Once your branch is ready, I'll make those changes as I merge in your work. >> Also (perhaps because you didn't know about the IBanManager), your branch >> doesn't provide a way to set or delete global bans. > >It is more the fact that I created the first version of the patch before >the IBanManager came to life, because our control panel software mailman 3 >integration has this view that displays per list bans. I could >add global bans as well since it makes sense. Cool. >> What do you think about a resource tree that looks something like this: >> >> GET http://.../bans -> a list of all global bans >> DELETE http://.../bans -> deletes all global bans > >Is this really required? I guess it might be nice of course, but >it feels like an uncommon operation (and one that can be done >using the other DELETE although less efficiently). True. I'm also not really happy with DELETE on .../bans because it doesn't actually delete the resource. Okay, so let's forget DELETE on all. Do we need GET on all? >> POST