Patches item #3011428, was opened at 2010-06-04 10:13 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3011428...
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: Closed Resolution: Accepted
Priority: 5 Private: No Submitted By: stanlekub (stanlekub)
Assigned to: xqt (xqt)
Summary: Improved User() class in rewrite
Initial Comment: The attached patch pretends to improve the User() class of the rewrite branch:
* Backward compatibility issues: ** Add the name() method that was missing. ** registrationTime() now correctly returns a long instead of a string. ** fix discrepancy between str/unicode in return values. ** uploadedImages() now yields ImagePage() instead of Page() objects.
* Miscellaneous improvements: ** Add support for so-called anonymous users. ** getprops() now uses the Site's .users() method instead of a direct api query. ** registrationTime() is deprecated in favor of registration(), which returns a pywikibot.Timestamp instead of a string.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-09 14:47
Message: done in r8261. I've changed some methods names in camelCase like the rest of these parts. (I guess,) underlines should be used by classes and preleading underlines for internal (hidden) methods and variables
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3011428...
pywikipedia-bugs@lists.wikimedia.org