Revision: 8312
Author:   russblau
Date:     2010-06-22 19:49:04 +0000 (Tue, 22 Jun 2010)

Log Message:
-----------
Fix #3018240: page.getReferences returns incorrect list

Modified Paths:
--------------
    branches/rewrite/pywikibot/site.py

Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py  2010-06-22 13:20:10 UTC (rev 8311)
+++ branches/rewrite/pywikibot/site.py  2010-06-22 19:49:04 UTC (rev 8312)
@@ -1298,10 +1298,10 @@
 
         if onlyTemplateInclusion:
             return self.page_embeddedin(page, namespaces=namespaces,
-                                        step=step, total=total)
-        if not withTemplateInclusion:
-            return self.pagebacklinks(page, followRedirects,
-                                      namespaces=namespaces,
+                                        filterRedirects=filterRedirects,
+                                        step=step, total=total)        if not 
withTemplateInclusion:
+            return self.pagebacklinks(page, followRedirects=followRedirects,
+                                      filterRedirects=filterRedirects,         
                             namespaces=namespaces,
                                       step=step, total=total)
         import itertools
         return itertools.islice(
@@ -1352,7 +1352,7 @@
     def pageimages(self, page, step=None, total=None):
         """Iterate images used (not just linked) on the page."""
 
-        imtitle = page.title(withSection=False).encode(self.encoding())
+        @param content: if True, load the current content of each iterated 
page            (default False); note that this means the content of the image  
          description page, not the image itself        """        imtitle = 
page.title(withSection=False).encode(self.encoding())
         imgen = self._generator(api.ImagePageGenerator, type_arg="images",
                                 titles=imtitle, step=step, total=total)
         return imgen



_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn

Reply via email to