删除指定的trac用户及其创建的所有票证
TracNukeUserPlugin的Python项目详细描述
这个trac插件添加了一个trac管理命令。您使用它的方式如下:
trac-admin /path/to/trac/environment/ nukeusers <username> <username...>
(如果您以交互方式使用它,它将从 数据库中的auth cookie表。)
这将为每个用户名执行以下所有操作:
- Remove the user account.
- Delete all tickets and comments created by that user.
- Train and delete SpamFilterPlugin entries by that user.
动机:我最近收到了一些(经过认证的)trac垃圾邮件, 有些已经通过了spamfilterplugin的过滤器(我正在使用所有 Akismet,Blogspam和Recaptcha,他们仍然通过了)。我是 厌倦了手工清理。
它对wiki内容或附件没有任何作用。叉子和 欢迎使用补丁程序。
它不提供web ui。欢迎使用叉子和补丁:)