[Pywikipedia-l] SVN: [6220] trunk/pywikipedia/category_redirect.py

russblau at svn.wikimedia.org russblau at svn.wikimedia.org
Mon Jan 5 13:48:05 UTC 2009


Revision: 6220
Author:   russblau
Date:     2009-01-05 13:48:05 +0000 (Mon, 05 Jan 2009)

Log Message:
-----------
save page even if unchanged

Modified Paths:
--------------
    trunk/pywikipedia/category_redirect.py

Modified: trunk/pywikipedia/category_redirect.py
===================================================================
--- trunk/pywikipedia/category_redirect.py	2009-01-03 14:34:49 UTC (rev 6219)
+++ trunk/pywikipedia/category_redirect.py	2009-01-05 13:48:05 UTC (rev 6220)
@@ -150,9 +150,8 @@
         Moves subcategories of oldCat as well. oldCat and newCat should be
         Category objects. If newCat is None, the category will be removed.
 
-        This is a copy of portions of catlib.change_category() with the
-        added capability to post a talk page message on pages that cannot be
-        fixed due to protection.
+        This is a copy of portions of catlib.change_category(), with some
+        changes.
 
         """
         oldtext = article.get(get_redirect=True, force=True)
@@ -160,7 +159,8 @@
         if newtext == oldtext:
             wikipedia.output(
                 u'No changes in made in page %s.' % article.aslink())
-            return False
+            # even if no changes, still save the page, in case it needs
+            # an update due to changes in a transcluded template
         try:
             article.put(newtext, comment)
             return True





More information about the Pywikipedia-l mailing list