[Pywikipedia-l] SVN: [4682] trunk/pywikipedia

rotem at svn.wikimedia.org rotem at svn.wikimedia.org
Sun Dec 9 20:43:52 UTC 2007


Revision: 4682
Author:   rotem
Date:     2007-12-09 20:43:47 +0000 (Sun, 09 Dec 2007)

Log Message:
-----------
Removing obsolete Special:Maintenance.

Modified Paths:
--------------
    trunk/pywikipedia/families/wesolve_family.py
    trunk/pywikipedia/family.py
    trunk/pywikipedia/wikicomserver.py
    trunk/pywikipedia/wikipedia.py

Modified: trunk/pywikipedia/families/wesolve_family.py
===================================================================
--- trunk/pywikipedia/families/wesolve_family.py	2007-12-09 20:26:47 UTC (rev 4681)
+++ trunk/pywikipedia/families/wesolve_family.py	2007-12-09 20:43:47 UTC (rev 4682)
@@ -52,15 +52,6 @@
     def upload_address(self, code):
         raise UploadDisabled
 
-    def maintenance_address(self, code, maintenance_page, default_limit = True):
-        if default_limit:
-            return ('/wsiwiki/index.php?title=%s:Maintenance&subfunction=' %
-                    self.special_namespace_url(code)) + maintenance_page
-        else:
-            return (('/wsiwiki/index.php?title=%s:Maintenance&subfunction=' %
-                    self.special_namespace_url(code)) + maintenance_page
-                    + '&limit=' + str(config.special_page_limit))
-
     def allmessages_address(self, code):
         return ("/wsiwiki/index.php?title=%s:Allmessages&ot=html" %
                 self.special_namespace_url(code))

Modified: trunk/pywikipedia/family.py
===================================================================
--- trunk/pywikipedia/family.py	2007-12-09 20:26:47 UTC (rev 4681)
+++ trunk/pywikipedia/family.py	2007-12-09 20:43:47 UTC (rev 4682)
@@ -2666,12 +2666,6 @@
     def upload_address(self, code):
         return '%s?title=%s:Upload' % (self.path(code), self.special_namespace_url(code))
 
-    def maintenance_address(self, code, maintenance_page, default_limit = True):
-        if default_limit:
-            return '%s?title=%s:Maintenance&subfunction=%s' % (self.path(code), self.special_namespace_url(code), maintenance_page)
-        else:
-            return '%s?title=%s:Maintenance&subfunction=%s&limit=%d' % (self.path(code), self.special_namespace_url(code), maintenance_page, config.special_page_limit)
-
     def double_redirects_address(self, code, default_limit = True):
         if default_limit:
             return '%s?title=%s:DoubleRedirects' % (self.path(code), self.special_namespace_url(code))

Modified: trunk/pywikipedia/wikicomserver.py
===================================================================
--- trunk/pywikipedia/wikicomserver.py	2007-12-09 20:26:47 UTC (rev 4681)
+++ trunk/pywikipedia/wikicomserver.py	2007-12-09 20:43:47 UTC (rev 4682)
@@ -66,7 +66,7 @@
         site = wikipedia.getSite(code, fam, user)
         site.objectVer = wikipedia.__version__
         site.objectName = "WikiSite"
-        site._public_methods_ = ['__cmp__', '__repr__', 'allmessages_address', 'allpages', 'allpages_address', 'ancientpages', 'ancientpages_address', 'broken_redirects_address', 'categories', 'categories_address', 'category_namespace', 'category_namespaces', 'category_on_one_line', 'checkCharset', 'cookies', 'deadendpages', 'deadendpages_address', 'delete_address', 'double_redirects_address', 'edit_address', 'encoding', 'encodings', 'export_address', 'family', 'forceLogin', 'getSite', 'getToken', 'getUrl', 'get_address', 'hostname', 'image_namespace', 'interwiki_putfirst', 'interwiki_putfirst_doubled', 'language', 'languages', 'linkto', 'loggedin', 'login_address', 'lonelypages', 'lonelypages_address', 'longpages', 'longpages_address', 'maintenance_address', 'namespace', 'namespaces', 'newpages', 'newpages_address', 'purge_address', 'putToken', 'put_address', 'redirect', 'redirectRegex', 'references_address', 'shortpages', 'shortpages_address', 'sitename', 'template_namespace', 'uncategorizedcategories', 'uncategorizedcategories_address', 'uncategorizedpages', 'uncategorizedpages_address', 'unusedcategories', 'unusedcategories_address', 'upload_address', 'version', 'watchlist_address']
+        site._public_methods_ = ['__cmp__', '__repr__', 'allmessages_address', 'allpages', 'allpages_address', 'ancientpages', 'ancientpages_address', 'broken_redirects_address', 'categories', 'categories_address', 'category_namespace', 'category_namespaces', 'category_on_one_line', 'checkCharset', 'cookies', 'deadendpages', 'deadendpages_address', 'delete_address', 'double_redirects_address', 'edit_address', 'encoding', 'encodings', 'export_address', 'family', 'forceLogin', 'getSite', 'getToken', 'getUrl', 'get_address', 'hostname', 'image_namespace', 'interwiki_putfirst', 'interwiki_putfirst_doubled', 'language', 'languages', 'linkto', 'loggedin', 'login_address', 'lonelypages', 'lonelypages_address', 'longpages', 'longpages_address', 'namespace', 'namespaces', 'newpages', 'newpages_address', 'purge_address', 'putToken', 'put_address', 'redirect', 'redirectRegex', 'references_address', 'shortpages', 'shortpages_address', 'sitename', 'template_namespace', 'uncategorizedcategories', 'uncategorizedcategories_address', 'uncategorizedpages', 'uncategorizedpages_address', 'unusedcategories', 'unusedcategories_address', 'upload_address', 'version', 'watchlist_address']
         site._public_attrs_ = ['objectVer', 'objectName']
         site._readonly_attrs_ = site._public_attrs_
         return wrap(site, useDispatcher=useDispatcher)

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2007-12-09 20:26:47 UTC (rev 4681)
+++ trunk/pywikipedia/wikipedia.py	2007-12-09 20:43:47 UTC (rev 4682)
@@ -3546,7 +3546,6 @@
         references_address(s): Special:Whatlinksere for page 's'.
         allmessages_address: Special:Allmessages.
         upload_address: Special:Upload.
-        maintenance_address(sub): Special:Maintenance for subfunction 'sub'.
         double_redirects_address: Special:Doubleredirects.
         broken_redirects_address: Special:Brokenredirects.
         login_address: Special:Userlogin.
@@ -4729,11 +4728,6 @@
         """Return path to Special:Upload."""
         return self.family.upload_address(self.lang)
 
-    def maintenance_address(self, sub, default_limit = True):
-        """Return path to Special:Maintenance for subfunction 'sub'."""
-        #TODO: this address seems to be non-functioning on Wikimedia projects
-        return self.family.maintenance_address(self.lang, sub, default_limit)
-
     def double_redirects_address(self, default_limit = True):
         """Return path to Special:Doubleredirects."""
         return self.family.double_redirects_address(self.lang, default_limit)





More information about the Pywikipedia-l mailing list