Patches item #2895284, was opened at 2009-11-10 16:53 Message generated for change (Tracker Item Submitted) made by stanlekub You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2895284...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: rewrite Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: stanlekub (stanlekub) Assigned to: Nobody/Anonymous (nobody) Summary: Port of the User() class
Initial Comment: Attached is a proposed patch to port the "old" usrlib.py into the rewrite branch.
Basically, this creates a class User(), which is a subclass of Page, with additional methods.
The patch adds: * the class User() in page.py * 2 new exceptions in exceptions.py * an import statement for User() in __init__.py * a minimal usrlib.py file is also provided for backwards-compatibility, in the same manner it was done for catlib.
This implementation should be fully compatible with the "old" one... with all of its defaults included. There is for example a strange discrepancy between the format of timestamps as returned by .contributions() and .loadedImages().
The methods .block() and .unblock() aren't implemented yet, and the 'autoblock' thingy should probably be tweeked a little more.
Comments on this are really welcomed, and sorry for my english.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2895284...
pywikipedia-bugs@lists.wikimedia.org