https://bugzilla.wikimedia.org/show_bug.cgi?id=55016
Web browser: ---
Bug ID: 55016
Summary: Extended version information in user-agent
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/330/
Reported by: valhallasw
Created on: 2013-02-04 20:52:53
Subject: Extended version information in user-agent
Original description:
See the discussion at
https://www.mediawiki.org/wiki/Special:Code/pywikipedia/11027\#c33303
Implementation notes:
Hash of a file:
>>> import hashlib
>>> m = hashlib.sha1\(\)
>>> m.hexdigest\(\)
'93ae86148e74a7c3a3d63f7810b48c51889fba46'
Classes used in stack trace:
>> import inspect
>> \[\(x.\_\_module\_\_, x.\_\_name\_\_\) for x in
\(s\[0\].f\_locals.get\('self', None\).\_\_class\_\_ for s in
inspect.stack\(\)\)\]
Example result:
\[\('wikipedia\_family', 'Family'\), \('pdb', 'Pdb'\), \('pdb', 'Pdb'\),
\('pdb', 'Pdb'\), \('pdb', 'Pdb'\), \('pdb', 'Pdb'\), \('pdb', 'Pdb'\),
\('pdb', 'Pdb'\), \('pdb', 'Pdb'\), \('wikipedia\_family', 'Family'\),
\('wikipedia', 'Site'\), \('wikipedia', 'Site'\), \('wikipedia', 'Site'\),
\('wikipedia', 'Site'\), \('wikipedia', 'Site'\), \('wikipedia', 'Page'\),
\('wikipedia', 'Page'\), \('\_\_main\_\_', 'Subject'\), \('\_\_main\_\_',
'Subject'\), \('\_\_main\_\_', 'InterwikiBot'\), \('\_\_main\_\_',
'InterwikiBot'\), \('\_\_builtin\_\_', 'NoneType'\), \('\_\_builtin\_\_',
'NoneType'\), \('\_\_builtin\_\_', 'NoneType'\), \('pdb', 'Pdb'\), \('pdb',
'Pdb'\), \('\_\_builtin\_\_', 'NoneType'\), \('\_\_builtin\_\_', 'NoneType'\),
\('\_\_builtin\_\_', 'NoneType'\), \('\_\_builtin\_\_', 'NoneType'\)\]
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54549
Web browser: ---
Bug ID: 54549
Summary: Not load unnecessary data in token()
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/patches/606/
Reported by: Anonymous user
Created on: 2013-04-08 12:22:18
Subject: Not load unnecessary data in token()
Assigned to: legoktm
Original description:
In token\(\), It queries info and \*all\* revisions of a page. Querying all
revisions is too expensive and unnecessary. For example, if I just want to
process the last revision of several pages and put them back, with the old
code, it loads all revisions when putting. It makes putting in rewrite branch
spend time about 10x compared to that in the trunk.
The patch I am presenting just do not load revisions. It shouldn't break other
functions since needed data has included in the info of a page.
\----
Pywikibot branches/rewrite/ \(r11357, 2013/04/07, 14:50:30, ok\)
Python 2.7.3 \(default, Sep 26 2012, 21:53:58\)
\[GCC 4.7.2\]
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60381
Web browser: ---
Bug ID: 60381
Summary: Return of the AttributeError: 'Page' object has no
attribute '_isredir'
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: geofbot(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
We thought this was fixed, but alas...
local-sn1pebot@tools-login:~/core/pywikibot$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywikibot
>>> site = pywikibot.getSite()
>>> page = pywikibot.Page(site)
>>> page.get("Cat")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/data/project/sn1pebot/.local/lib/python2.7/site-packages/pywikibot/__init__.py",
line 356, in wrapper
return method(*__args, **__kw)
File
"/data/project/sn1pebot/.local/lib/python2.7/site-packages/pywikibot/__init__.py",
line 356, in wrapper
return method(*__args, **__kw)
File
"/data/project/sn1pebot/.local/lib/python2.7/site-packages/pywikibot/page.py",
line 300, in get
self._getInternals(sysop)
File
"/data/project/sn1pebot/.local/lib/python2.7/site-packages/pywikibot/page.py",
line 330, in _getInternals
if self._isredir:
AttributeError: 'Page' object has no attribute '_isredir'
>>>
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=58574
Web browser: ---
Bug ID: 58574
Summary: unicodeDecodeError in url2unicode()
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: info(a)gno.de
Classification: Unclassified
Mobile Platform: ---
Historia de Cerdeña -> corresponding page is Història de Sardenya
Traceback (most recent call last):
File "C:\pwb\core\pwb.py", line 135, in <module>
run_python_file(fn, argv, argvu)
File "C:\pwb\core\pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "C:\pwb\core\scripts\featured.py", line 683, in <module>
main()
File "C:\pwb\core\scripts\featured.py", line 676, in main
bot.run()
File "C:\pwb\core\scripts\featured.py", line 285, in run
self.run_good()
File "C:\pwb\core\scripts\featured.py", line 320, in run_good
self.treat(code, task)
File "C:\pwb\core\scripts\featured.py", line 372, in treat
self.featuredWithInterwiki(fromsite, process)
File "C:\pwb\core\scripts\featured.py", line 612, in featuredWithInterwiki
atrans.put(text, comment)
File "C:\pwb\core\pywikibot\page.py", line 906, in put
async=async, callback=callback, **kwargs)
File "C:\pwb\core\pywikibot\page.py", line 827, in save
**kwargs)
File "C:\pwb\core\pywikibot\page.py", line 834, in _save
comment = self._cosmetic_changes_hook(comment) or comment
File "C:\pwb\core\pywikibot\page.py", line 884, in _cosmetic_changes_hook
self.text = ccToolkit.change(old)
File "C:\pwb\core\scripts\cosmetic_changes.py", line 174, in change
text = self.cleanUpLinks(text)
File "C:\pwb\core\scripts\cosmetic_changes.py", line 510, in cleanUpLinks
'startspace'])
File "C:\pwb\core\pywikibot\textlib.py", line 208, in replaceExcept
replacement = new(match)
File "C:\pwb\core\scripts\cosmetic_changes.py", line 396, in handleOneLink
if not self.site.isInterwikiLink(titleWithSection):
File "C:\pwb\core\pywikibot\site.py", line 381, in isInterwikiLink
linkfam, linkcode = pywikibot.Link(text, self).parse_site()
File "C:\pwb\core\pywikibot\page.py", line 3102, in __init__
t = url2unicode(t, site=self._source)
File "C:\pwb\core\pywikibot\page.py", line 3546, in url2unicode
raise firstException
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 12: invalid
start byte
Unfortunately the title is not printed to specify that bug
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55017
Web browser: ---
Bug ID: 55017
Summary: category.py dosen't work properly for template
namespace
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/329/
Reported by: reza1615
Created on: 2013-01-31 20:21:16
Subject: category.py dosen't work properly for template namespace
Original description:
category.py doesn't work properly for template namespace and it don't remove or
change categories from /doc sub-page
please add some codes to check if category is not in the template page it goes
to /doc page
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55068
Web browser: ---
Bug ID: 55068
Summary: Support the use of Assert Edit
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/241/
Reported by: p858snake
Created on: 2010-03-05 10:07:29
Subject: Support the use of Assert Edit
Original description:
It would be nice if the use of the Assert Edit\[1\] extension was supported by
the framework, Because for the wikis it is depolyed on \(All WMF wikis\) it
would prevent bots from editing unlogged inif they choose to have it assert its
edits.
\[1\]. http://www.mediawiki.org/wiki/Extension:Assert\_Edit
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55880
Web browser: ---
Bug ID: 55880
Summary: [Tracking] Functionality existing in compat but
missing from core
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: crangasi2001(a)yahoo.com
Classification: Unclassified
Mobile Platform: ---
This is a tracking bug for feature that existed in compat, are absent in core
and are still considered useful.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55211
Web browser: ---
Bug ID: 55211
Summary: Error in nice_get_address?
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1412/
Reported by: binbot
Created on: 2012-02-27 14:38:50
Subject: Error in nice_get_address?
Original description:
Copy
replace.py -page:"A Ki vagy, Doki? epizódjainak listája" x v -lang:hu
to your command line and press b for browser -- you will get an error message.
Spaces won't be translated to underscores.
Pywikipedia trunk/pywikiped \(r9936, 2012/02/26, 09:10:05\)
Python 2.7.2 \(default, Jun 12 2011, 14:24:46\) \[MSC v.1500 64 bit \(AMD64\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56961
Web browser: ---
Bug ID: 56961
Summary: Tests: test using local mediawiki installation
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
Classification: Unclassified
Mobile Platform: ---
Currently, tests are run on enwiki. It would be much nicer if we could set up a
local mediawiki instance with a set of fixed pages/database, and run tests
there. That would also allow us to test with different mediawiki versions, for
example.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=57602
Web browser: ---
Bug ID: 57602
Summary: pywikibot.Site.protect does not exist
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
Classification: Unclassified
Mobile Platform: ---
There is no protect functionality in core yet!
valhallasw@lisilwen:~/src/pwb/pywikibot-core$ python pwb.py protect
-links:User:Valhallasw/linkpage -site:test -family:test
Processing page User:Valhallasw
Do you want to change the protection level of [[test:User:Valhallasw]]? ([Y]es,
[N]o, [A]ll) Y
Traceback (most recent call last):
File "pwb.py", line 123, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 64, in run_python_file
exec compile(source, filename, "exec") in main_mod.__dict__
File "scripts/protect.py", line 286, in <module>
main()
File "scripts/protect.py", line 280, in main
bot.run()
File "scripts/protect.py", line 137, in run
move=self.move)
File "/home/valhallasw/src/pwb/pywikibot-core/pywikibot/__init__.py", line
251, in wrapper
return method(*__args, **__kw)
File "/home/valhallasw/src/pwb/pywikibot-core/pywikibot/page.py", line 1417,
in protect
return self.site.protect(self, edit, move, reason)
File "/home/valhallasw/src/pwb/pywikibot-core/pywikibot/site.py", line 230,
in __getattr__
% (self.__class__.__name__, attr))
AttributeError: APISite instance has no attribute 'protect'
--
You are receiving this mail because:
You are the assignee for the bug.