Sure, done. I used an attribute check instead of making it part of the query since the 'disabled' field hasn't always been there so there are older mongo records that don't have it in there. But Ming will default the attribute for you once the record is loaded.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
db/7892
To run:
paster script development.ini allura/scripts/disable_users.py -- --usernames user03 user04 user05
cat users.txt | paster script development.ini allura/scripts/disable_users.py -- --usernames -
Looking good -- but we may want to only get the users that are actually enabled (in case it's ran twice or something).
May need to update the log message as well.
Sure, done. I used an attribute check instead of making it part of the query since the 'disabled' field hasn't always been there so there are older mongo records that don't have it in there. But Ming will default the attribute for you once the record is loaded.
Looks good Dave :)