Code Monkey home page Code Monkey logo

tracnukeuserplugin's Introduction

TracNukeUserPlugin
==================

Status
--------

I (slinkp) am currently (Sept 2012) not using Trac at all, so I'm very unlikely
to do any more work on this, or respond to issue reports, etc.

Feel free to fork this code or do anything you like with it,
subject to the terms of the BSD license (see LICENSE.txt)

About
-------

This Trac plugin adds a single trac-admin command.  You use it like:

``trac-admin /path/to/trac/environment/  nukeusers <username> <username...>``

(If you use it interactively, it does tab-completion of usernames from
the auth cookie table in the database.)

This will do all of the following for each username:

 * Remove the user account.
 * Delete all tickets and comments created by that user.
 * Train and delete SpamFilterPlugin entries by that user.

Motivation: I've been getting some (authenticated) Trac spam lately,
some of it getting past SpamFilterPlugin's filters (I'm using all of
Akismet, BlogSpam, and reCaptcha, and they still got through).  I was
getting tired of doing cleanup manually.

It does not do anything about wiki content or attachments.  Forks are
welcome.

It does not provide a web UI. Forks welcome :)

tracnukeuserplugin's People

Contributors

slinkp avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tracnukeuserplugin's Issues

Any interest in joining the trac-hacks organization?

Hi,

I'm an administrator for trac-hacks.org. We've created an organization on GitHub and are inviting authors of trac-hacks plugins to join the organization. Your repository could be transferred into the organization as described in the GitHub docs. You'd retain full control over the repository, but the hope is that it will be easier for users on GitHub to fine trac-hacks plugins, including yours, by viewing the trac-hacks organization.

In the future, if you choose to no longer maintain the plugin, the organization would be able to provide commit access to new developers. This would only be done with your permission, as has been the policy for plugins hosted on trac-hacks.org. If you've already decided to no longer maintain the plugin, we would particularly appreciate you transferring the plugin to the trac-hacks organization so that we can help find new maintainers for it.

Finally, creating the trac-hacks organization is a work in progress. I appreciate if you have any suggestions on how to best support the community of trac plugin developers on GitHub. I'll be writing a blog post soon with more information and will follow-up here with a link to that post.

Kind regards,

  • Ryan

Note about acctMgr 0.4

Looking at your code here I see you've found a bug that has been fixed during the last months of development and will gain common use by next stable release acct_mgr-0.4

So this will still not hurt to keep it for older plugin applications, but you may want to adapt your developer comment in the code.

Steffen

Licensing clarification

Thanks for responses to my earlier request, so I'm encouraged to follow-up:

I'm evaluating the possibility for integration with AccountManagerPlugin. It's license is BEERWARE, not effectively much different, but maybe still a bit more liberal than BSD (or "3-clause BSD" as you may have intended to assign that one). Do you see a chance for re-licensing your code, so that upstream development could happen within AccountManagerPlugin?

I'm not finished and determined yet, but this would be a per-requisite for integration. But you're free to push your intention, i.e. to keep it as a separate plugin. I'm listening.

I've just flagged the plugin with 'needsadoption' at trac-hacks.org for now.

all code in __init__.py is not very nice

Not seen such a code placement. Better keep __init_.py empty and move code to another file, say console.py (following Trac core naming convetions) or similar. You can preserve current way of component activation by keeping a single line in __init__.py like so:

from nukeuserplugin.console import *

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.