Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user class #236

Open
RheingoldRiver opened this issue Oct 10, 2019 · 1 comment
Open

user class #236

RheingoldRiver opened this issue Oct 10, 2019 · 1 comment

Comments

@RheingoldRiver
Copy link
Member

One other thing I started working on was adding a class mwclient.user to make discovering and updating user rights easy, and maybe also support emailing users. Assuming I get around to finishing this, would you be interested in incorporating this to mwclient? Probably it would be sometime next month or the month after, I have a big project on my wiki I need to finish first, so far I only wrote a bit for a one-time set of user rights I needed to clone to people on a couple different wikis I work on.

@danmichaelo
Copy link
Member

danmichaelo commented Oct 11, 2019

Absolutely!

Note that we already have an email() method here: https://github.com/mwclient/mwclient/blob/master/mwclient/client.py#L479-L512

If you implement a user class, that method can probably be moved to the user class, leaving the original method as an alias (perhaps with a deprecation warning)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants