https://bugzilla.wikimedia.org/show_bug.cgi?id=73488
Bug ID: 73488
Summary: Support contentmodel in edit (and possibly get)
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Web browser: ---
Mobile Platform: ---
See https://www.mediawiki.org/w/api.php?action=help&modules=edit under
contentformat for details.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60572
Web browser: ---
Bug ID: 60572
Summary: delete.py should have different messaged for
deleting/undeleting pages
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Classification: Unclassified
Mobile Platform: ---
Now we have the same edit summary for deleting and undeleting operations.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72733
Bug ID: 72733
Summary: Implement site.undelete
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Currently core has methods in the Page object for undeletion
(Page.markDeletedRevision and Page.undelete), which invoke method
Site.undelete() which does not exist.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71646
Bug ID: 71646
Summary: missing end of line in replace.py output
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Other scripts
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
when running replace.py with manual confirming of each replace, bot have often
some pages in save queue. In compat all messages about saving appeared after
confirming some of next
>>>Page 1<<<
- FOO
+ BAR
Do you fant to accept... [y/n]y
Page [[Lorem]] saved
Page [[Ipsum]]saved
In core these messages sometimes appears before confirming
No changes were necessary in [[Ivan Král vydá po dvanácti letech nové album]]
Page [[Izrael popřel, že by střílel na vozidlo OSN]] saved
>>> Je zvažováno obnovení meziměstské tramvaje mezi Bratislavou a Vídní <<<
- | odkaz na periodikum = IDnes
+ | odkaz na periodikum = IDNES.cz
Do you want to accept these changes? ([y]es, [N]o, [e]dit, open in [b]rowser,
[a
]ll, [q]uit) Page [[Italka odpojená po letech od vyživovacích přístrojů
zemřela]
] saved
y
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73027
Bug ID: 73027
Summary: protect.py always is broken (pylint)
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Other scripts
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
E:102,20: Instance of 'ProtectionRobot' has no 'option' member (no-member)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69895
Bug ID: 69895
Summary: Calling any script passing the -help argument,
performs an api call to the default configured wiki
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: martineznovo(a)gmail.com
Web browser: ---
Mobile Platform: ---
When calling any script with the -help argument to see the parameters it can
handle, the bot makes a call to the api of the default configured wiki.
I noticed it because my default configured wiki is a test wiki hosted locally,
and I have the webserver stopped when I don't need it running. When I need to
run the bot, I manually specify -family:WHATEVER
Under that circumstances, every attempt to run -help on any script causes an
error because the default configured wiki-family is not accessible:
$ python pwb.py replace.py -help
> ERROR: Traceback (most recent call last):
> File "/path/pywikibot/data/api.py", line 341, in submit
> body=paramstring)
> File "/path/pywikibot/comms/http.py", line 184, in request
> raise request.data
> error: [Errno 111] Connection refused
>
> WARNING: Waiting 5 seconds before retrying.
> ^CTraceback (most recent call last):
> File "pwb.py", line 171, in <module>
> run_python_file(fn, argv, argvu)
> File "pwb.py", line 69, in run_python_file
> exec(compile(source, filename, "exec"), main_mod.__dict__)
> File "scripts/replace.py", line 685, in <module>
> main()
> File "scripts/replace.py", line 483, in main
> local_args = pywikibot.handleArgs(*args)
> File "/path/pywikibot/bot.py", line 666, in handleArgs
> init_handlers()
> File "/path/pywikibot/bot.py", line 248, in init_handlers
> writelogheader()
> File "/path/pywikibot/bot.py", line 318, in writelogheader
> log(u'SITE VERSION: %s' % unicode(site.live_version()))
> File "/path/pywikibot/site.py", line 1877, in live_version
> expiry=0 if force else 1)
> File "/path/pywikibot/site.py", line 1097, in get
> preloaded = self._get_general(key, expiry)
> File "/path/pywikibot/site.py", line 1043, in _get_general
> default_info = self._get_siteinfo(props, expiry)
> File "/path/pywikibot/site.py", line 967, in _get_siteinfo
> siprop='|'.join(props)).submit()
> File "/path/pywikibot/data/api.py", line 580, in submit
> self._data = super(CachedRequest, self).submit()
> File "/path/pywikibot/data/api.py", line 358, in submit
> self.wait()
> File "/path/pywikibot/data/api.py", line 469, in wait
> time.sleep(self.retry_wait)
> KeyboardInterrupt
> <type 'exceptions.KeyboardInterrupt'>
Of course, it works when I have apache running, but such connections seem
unnecessary when the bot doesn't have to run anything.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68941
Bug ID: 68941
Summary: Add ignore templates to commonscat.py
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: dan.mac22(a)gmail.com
Web browser: ---
Mobile Platform: ---
Please update the ignoreTemplates['pt'] in commonscat.py:
- 'pt': [u'Correlatos'],
+ 'pt': [u'Correlatos', u'Commons', u'Commons cat multi', u'Commons1',
u'Commons2'],
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73184
Bug ID: 73184
Summary: redirects to other wiki erroneously lead to
CircularRedirect
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: redirect.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: mpaa.wiki(a)gmail.com
Web browser: ---
Mobile Platform: ---
python scripts/redirect.py double -family:wikisource -lang:en
Retrieving special page...
>>> The Army and Navy Hymnal/Catholic/Tantum ergo Sacramentum <<<
ERROR: Page [[en:The Army and Navy Hymnal/Catholic/Tantum ergo Sacramentum]] is
a circular redirect.
Skipping [[en:The Army and Navy Hymnal/Catholic/Tantum ergo Sacramentum]].
Page content is:
The Army and Navy Hymnal/Catholic/Tantum ergo Sacramentum
Redirect to:
la:The Army and Navy Hymnal/Catholic/Tantum Ergo
The Army and Navy Hymnal/Catholic/Tantum Ergo
Redirect to:
la:The Army and Navy Hymnal/Catholic/Tantum Ergo
The prefix la: is not considered, so the scripts is assuming it is on the en:
site.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68847
Bug ID: 68847
Summary: Testsuite initialisation fails on Windows when pywin32
isnt installed
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Under python 2.7.8, the default test loader for 'tests' tries to instantiate
all files called '*_tests.py', and fails to instantiate the module 'ui_tests'
when pywin32 is not installed.
> python setup.py test
running test
running egg_info
writing requirements to pywikibot.egg-info\requires.txt
writing pywikibot.egg-info\PKG-INFO
writing top-level names to pywikibot.egg-info\top_level.txt
writing dependency_links to pywikibot.egg-info\dependency_links.txt
reading manifest file 'pywikibot.egg-info\SOURCES.txt'
writing manifest file 'pywikibot.egg-info\SOURCES.txt'
running build_ext
WARNING: Running on Windows and transliteration_target is not set.
Please see
https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Pywikibot/Wi
ndows
Traceback (most recent call last):
File "...\setup.py", line 94, in <module>
use_2to3=False
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "build\bdist.win-amd64\egg\setuptools\command\test.py", line 138, in run
File "build\bdist.win-amd64\egg\setuptools\command\test.py", line 118, in
with
_project_on_sys_path
File "build\bdist.win-amd64\egg\setuptools\command\test.py", line 164, in
run_
tests
File "C:\Python27\lib\unittest\main.py", line 94, in __init__
self.parseArgs(argv)
File "C:\Python27\lib\unittest\main.py", line 149, in parseArgs
self.createTests()
File "C:\Python27\lib\unittest\main.py", line 158, in createTests
self.module)
File "C:\Python27\lib\unittest\loader.py", line 128, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "C:\Python27\lib\unittest\loader.py", line 103, in loadTestsFromName
return self.loadTestsFromModule(obj)
File "build\bdist.win-amd64\egg\setuptools\command\test.py", line 35, in
loadT
estsFromModule
File "C:\Python27\lib\unittest\loader.py", line 100, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'ui_tests'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=63327
Bug ID: 63327
Summary: Migrate i18n file format to JSON
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: i18n
Severity: normal
Priority: Unprioritized
Component: i18n
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: siebrand(a)kitano.nl
CC: niklas.laxstrom(a)gmail.com, valhallasw(a)arctus.nl
Web browser: ---
Mobile Platform: ---
We've recently started using JSON for i18n files in MediaWiki and for some
other products. We think it's a good non-executable format for i18n/L10n.
It would be nice if Pywikibot would also start using this format. It would also
allow us to remove the less than excellent Python file format support in the
Translate extension.
--
You are receiving this mail because:
You are the assignee for the bug.