http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10320
Revision: 10320
Author: xqt
Date: 2012-06-08 07:19:18 +0000 (Fri, 08 Jun 2012)
Log Message:
-----------
spelling mistake, fix for r10316, r10317
Modified Paths:
--------------
branches/rewrite/pywikibot/config2.py
trunk/pywikipedia/config.py
Modified: branches/rewrite/pywikibot/config2.py
===================================================================
--- branches/rewrite/pywikibot/config2.py 2012-06-08 07:11:16 UTC (rev 10319)
+++ branches/rewrite/pywikibot/config2.py 2012-06-08 07:19:18 UTC (rev 10320)
@@ -503,7 +503,7 @@
# pages fetched from screen (mostly) have "\r\n". Interwiki and category
# separator settings in family files should use multiplied of this.
# LS is a shortcut alias.
-line_separatur = LS = u'\n'
+line_separator = LS = u'\n'
# End of configuration section
# ============================
Modified: trunk/pywikipedia/config.py
===================================================================
--- trunk/pywikipedia/config.py 2012-06-08 07:11:16 UTC (rev 10319)
+++ trunk/pywikipedia/config.py 2012-06-08 07:19:18 UTC (rev 10320)
@@ -488,7 +488,7 @@
# pages fetched from screen (mostly) have "\r\n". Interwiki and category
# separator settings in family files should use multiplied of this.
# LS is a shortcut alias.
-line_separatur = LS = u'\r\n'
+line_separator = LS = u'\r\n'
############## TEMPORARY SETTINGS ##############
# Temporary solution for 2012 version survey, search for this key
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10318
Revision: 10318
Author: xqt
Date: 2012-06-08 07:02:37 +0000 (Fri, 08 Jun 2012)
Log Message:
-----------
Partially revert of r10315 since disamiguation_comment is used before its declaration.
TODO: move the code behind the settings
(I guess disambiguation_comment shouldn't be used anymore. We have i18n for translations and we should use that behaviour)
Modified Paths:
--------------
branches/rewrite/pywikibot/config2.py
Modified: branches/rewrite/pywikibot/config2.py
===================================================================
--- branches/rewrite/pywikibot/config2.py 2012-06-08 06:51:26 UTC (rev 10317)
+++ branches/rewrite/pywikibot/config2.py 2012-06-08 07:02:37 UTC (rev 10318)
@@ -49,6 +49,7 @@
# sysopnames['wiktionary']['en'] = 'myEnglishUsername'
usernames = {}
sysopnames = {}
+disambiguation_comment = {}
# Solve captchas in the webbrowser. Setting this to False will result in the
# exception CaptchaError being thrown if a captcha is encountered.
@@ -313,7 +314,6 @@
# disambiguation_comment['wikipedia']['en'] = \
# "Robot-assisted disambiguation ([[WP:DPL|you can help!]]): %s"
-disambiguation_comment = {}
sort_ignore_case = False
############## IMAGE RELATED SETTINGS ##############
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10317
Revision: 10317
Author: xqt
Date: 2012-06-08 06:51:26 +0000 (Fri, 08 Jun 2012)
Log Message:
-----------
Define the line_separator. Pages retrieved via API have "\n" whereas
pages fetched from screen (mostly) have "\r\n". Interwiki and category
separator settings in family files should use multiplied of this.
LS is a shortcut alias
(prevents null edits without any changes on the wiki)
update from rewirte
Modified Paths:
--------------
trunk/pywikipedia/config.py
Modified: trunk/pywikipedia/config.py
===================================================================
--- trunk/pywikipedia/config.py 2012-06-08 06:48:45 UTC (rev 10316)
+++ trunk/pywikipedia/config.py 2012-06-08 06:51:26 UTC (rev 10317)
@@ -484,6 +484,12 @@
# processing. As higher this value this effect will decrease.
max_queue_size = 64
+# Define the line separator. Pages retrieved via API have "\n" whereas
+# pages fetched from screen (mostly) have "\r\n". Interwiki and category
+# separator settings in family files should use multiplied of this.
+# LS is a shortcut alias.
+line_separatur = LS = u'\r\n'
+
############## TEMPORARY SETTINGS ##############
# Temporary solution for 2012 version survey, search for this key
# in wikipedia.py
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10316
Revision: 10316
Author: xqt
Date: 2012-06-08 06:48:45 +0000 (Fri, 08 Jun 2012)
Log Message:
-----------
Define the line_separator. Pages retrieved via API have "\n" whereas
pages fetched from screen (mostly) have "\r\n". Interwiki and category
separator settings in family files should use multiplied of this.
LS is a shortcut alias
Modified Paths:
--------------
branches/rewrite/pywikibot/config2.py
branches/rewrite/pywikibot/family.py
Modified: branches/rewrite/pywikibot/config2.py
===================================================================
--- branches/rewrite/pywikibot/config2.py 2012-06-08 06:36:54 UTC (rev 10315)
+++ branches/rewrite/pywikibot/config2.py 2012-06-08 06:48:45 UTC (rev 10316)
@@ -499,6 +499,12 @@
# processing. As higher this value this effect will decrease.
max_queue_size = 64
+# Define the line separator. Pages retrieved via API have "\n" whereas
+# pages fetched from screen (mostly) have "\r\n". Interwiki and category
+# separator settings in family files should use multiplied of this.
+# LS is a shortcut alias.
+line_separatur = LS = u'\n'
+
# End of configuration section
# ============================
Modified: branches/rewrite/pywikibot/family.py
===================================================================
--- branches/rewrite/pywikibot/family.py 2012-06-08 06:36:54 UTC (rev 10315)
+++ branches/rewrite/pywikibot/family.py 2012-06-08 06:48:45 UTC (rev 10316)
@@ -582,7 +582,7 @@
# one-after-another on a single line
self.interwiki_on_one_line = []
# String used as separator between interwiki links and the text
- self.interwiki_text_separator = '\r\n\r\n'
+ self.interwiki_text_separator = config.line_separator * 2
# Similar for category
self.category_attop = []
@@ -590,7 +590,7 @@
# one-after-another on a single line
self.category_on_one_line = []
# String used as separator between category links and the text
- self.category_text_separator = '\r\n\r\n'
+ self.category_text_separator = config.line_separator * 2
# When both at the bottom should categories come after interwikilinks?
self.categories_last = []
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10315
Revision: 10315
Author: xqt
Date: 2012-06-08 06:36:54 +0000 (Fri, 08 Jun 2012)
Log Message:
-----------
remove unused items,
re-order disambiguation_comment,
new section header for cosmetic changes
Modified Paths:
--------------
branches/rewrite/pywikibot/config2.py
Modified: branches/rewrite/pywikibot/config2.py
===================================================================
--- branches/rewrite/pywikibot/config2.py 2012-06-08 06:35:44 UTC (rev 10314)
+++ branches/rewrite/pywikibot/config2.py 2012-06-08 06:36:54 UTC (rev 10315)
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# (C) Rob W.W. Hooft, 2003
-# (C) Pywikipedia bot team, 2003-2010
+# (C) Pywikipedia bot team, 2003-2012
#
# Distributed under the terms of the MIT license.
#
@@ -49,8 +49,6 @@
# sysopnames['wiktionary']['en'] = 'myEnglishUsername'
usernames = {}
sysopnames = {}
-disambiguation_comment = {}
-gdab_namespaces = {}
# Solve captchas in the webbrowser. Setting this to False will result in the
# exception CaptchaError being thrown if a captcha is encountered.
@@ -315,6 +313,7 @@
# disambiguation_comment['wikipedia']['en'] = \
# "Robot-assisted disambiguation ([[WP:DPL|you can help!]]): %s"
+disambiguation_comment = {}
sort_ignore_case = False
############## IMAGE RELATED SETTINGS ##############
@@ -464,7 +463,7 @@
socket_timeout = 120 # set a pretty long timeout just in case...
-############## FURTHER SETTINGS ##############
+############## COSMETIC CHANGES SETTINGS ##############
# The bot can make some additional changes to each page it edits, e.g. fix
# whitespace or positioning of interwiki and category links.
@@ -480,6 +479,8 @@
# foreign wiki, set cosmetic_changes_mylang_only to False, but be careful!
cosmetic_changes_mylang_only = True
+############## FURTHER SETTINGS ##############
+
### Proxy configuration ###
# assign prox = None to connect directly
# For proxy support first run: apt-get install python-socks.py
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10314
Revision: 10314
Author: xqt
Date: 2012-06-08 06:35:44 +0000 (Fri, 08 Jun 2012)
Log Message:
-----------
remove unused items,
remove feature request,
re-order disambiguation_comment,
new section header for cosmetic changes
Modified Paths:
--------------
trunk/pywikipedia/config.py
Modified: trunk/pywikipedia/config.py
===================================================================
--- trunk/pywikipedia/config.py 2012-06-08 06:20:49 UTC (rev 10313)
+++ trunk/pywikipedia/config.py 2012-06-08 06:35:44 UTC (rev 10314)
@@ -3,7 +3,7 @@
# (C) Rob W.W. Hooft, 2003
# parts by holger(a)trillke.net 2002/03/18
# Purodha Blissenbach (Modifier), 2010
-# (C) Pywikipedia bot team, 2007-2012
+# (C) Pywikipedia bot team, 2003-2012
#
# Distributed under the terms of the MIT license.
#
@@ -46,16 +46,8 @@
usernames = {}
sysopnames = {}
-# See section SOLVE_DISAMBIGUATION SETTINGS for details.
-disambiguation_comment = {}
-# This is currently not used anywhere:
-gdab_namespaces = {}
-# This is currently not used anywhere:
-account_global = False
-
# Solve captchas in the webbrowser. Setting this to False will result in the
# exception CaptchaError being thrown if a captcha is encountered.
-#TODO: allow more flexibility, such as runtime choices, skipping, and postponing
solve_captcha = True
# Some sites will require password authentication to access the HTML pages at
@@ -265,6 +257,7 @@
# disambiguation_comment['wikipedia']['en'] = \
# "Robot-assisted disambiguation ([[WP:DPL|you can help!]]): %s"
+disambiguation_comment = {}
sort_ignore_case = False
############## IMAGE RELATED SETTINGS ##############
@@ -441,7 +434,7 @@
socket_timeout = 120 # set a pretty long timeout just in case...
-############## FURTHER SETTINGS ##############
+############## COSMETIC CHANGES SETTINGS ##############
# The bot can make some additional changes to each page it edits, e.g. fix
# whitespace or positioning of interwiki and category links.
@@ -469,6 +462,9 @@
# dictionary. Please set your dict by adding such lines to your user-config.py:
# cosmetic_changes_disable['wikipedia'] = ('de', 'en', 'fr')
cosmetic_changes_disable = {}
+
+############## FURTHER SETTINGS ##############
+
# Use the experimental disk cache to prevent huge memory usage
use_diskcache = False