[Pywikipedia-svn] SVN: [7241] trunk/pywikipedia/userlib.py
alexsh at svn.wikimedia.org
alexsh at svn.wikimedia.org
Sun Sep 13 21:40:32 UTC 2009
Revision: 7241
Author: alexsh
Date: 2009-09-13 21:40:31 +0000 (Sun, 13 Sep 2009)
Log Message:
-----------
User():add __str__ to show project:lang:username
Modified Paths:
--------------
trunk/pywikipedia/userlib.py
Modified: trunk/pywikipedia/userlib.py
===================================================================
--- trunk/pywikipedia/userlib.py 2009-09-13 10:51:59 UTC (rev 7240)
+++ trunk/pywikipedia/userlib.py 2009-09-13 21:40:31 UTC (rev 7241)
@@ -45,6 +45,9 @@
self.site = site
self.name = name
+ def __str__(self):
+ return '%s:%s' % (self.site, self.name)
+
def getUserPage(self, subpage=''):
if self.name[0] == '#':
#This user is probably being queried for purpose of lifting
More information about the Pywikipedia-svn
mailing list