happy5214 added a comment.
This is probably later than it should have been, but my goals for the next two weeks are to:
1. Continue to introduce myself to the wider Flow and Pywikibot communities, including having a presence in both teams' IRC channels.
2. Learn general coding practices for Pywikibot, become familiar with the designs of Flow and Pywikibot, and fill in any gaps in needed technological knowledge.
3. Use the exposed Flow API and underlying architecture, Pywikibot design principles, and common sense to create a design for new Pywikibot classes that accurately reflect core Flow entities and fit into the existing Pywikibot framework.
4. Refine a schedule for the summer, including meeting times, methods of communication, work times, and weekly goals.
5. Complete the GSoC administrative tasks due before the start of coding, including submitting tax forms and setting up a Payoneer account.
I hope this works.
TASK DETAIL
https://phabricator.wikimedia.org/T67119
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: happy5214
Cc: Aklapper, happy5214, Legoktm, gerritbot, rmoen, EBernhardson, NiharikaKohli, Capt_Swing, Qgil, jayvdb, Mattflaschen, Xqt, Ricordisamoa, Multichill, Ladsgroup, Imaculate, matthiasmullie, Gryllida, Quiddity, pywikipedia-bugs
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-solve-disambiguation.py.
jayvdb changed Security from none to none.
TASK DESCRIPTION
A disambiguation page which include a disambiguation disambiguator should not be 'solved'.
i.e. a link to [[!! (disambiguation)]] is obviously an intentional link, and shouldnt be solved.
On English Wikipedia, we create [[foo (disambiguation)]] -> [[foo]] redirect pages when [[foo]] is a disambiguation page, so that [[foo (disambiguation)]] can be to be used when intentionally linking to a dab page.
TASK DETAIL
https://phabricator.wikimedia.org/T85052
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs
XZise created this task.
XZise added a subscriber: XZise.
XZise added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
The `pywikibot.families.wikimedia_family.Family` returns `wikimediachapter` as a name but since e6e1e17f it must be the name as the module (excluding the _family suffix):
WARNING: /home/xzise/Programms/pywikibot/core/pywikibot/family.py:923: FamilyMaintenanceWarning: Family name wikimediachapter does not match family module name wikimedia
TASK DETAIL
https://phabricator.wikimedia.org/T98690
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: pywikipedia-bugs, Aklapper, XZise, jayvdb
Wesalius created this task.
Wesalius added a subscriber: Wesalius.
Wesalius added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
When I try to do ANY work on this [[ http://www.wikiskripta.eu/index.php/Speci%C3%A1ln%C3%AD:Verze | 1.22 non-WMF wiki]] I get hookaborted error. Recently I tried to fix doubleredirects, underneath is a output of the same command with -verbose
```
Pywikibot r89d748fb2c8babe1596a4eabdd5b4a316e2be43f
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)]
Found 1 ws:cs processes running, including this one.
LOADING SITE ws:cs VERSION: 1.22.0
Retrieving special page...
>>> Ca ledvin <<<
Links to: [[Karcinom ledvin]].
Links to: [[Karcinom ledviny]].
@@ -1 +1 @@
- #PŘESMĚRUJ [[Karcinom ledvin]]
+ #PŘESMĚRUJ [[Karcinom ledviny]]
Do you want to accept the changes? ([y]es, [N]o, [a]ll, [q]uit): y
Cosmetic changes for ws-cs enabled.
WARNING: \core\pywikibot\cosmetic_changes.py:221: Im
portWarning: package stdnum.isbn not found; using scripts.isbn
Site("cs", "ws").login(False) called when a previous login was in progress.
WARNING: \core\pywikibot\tools\ip.py:55: Deprecation
Warning: ipaddress backport not available.
API Error: query=
{'action': [u'edit'],
u'basetimestamp': [Timestamp(2015, 4, 30, 12, 13, 53)],
'bot': [True],
'createonly': [False],
u'format': [u'json'],
u'maxlag': ['5'],
'minor': [True],
'nocreate': [False],
'notminor': [False],
'recreate': [True],
'summary': [u'Robot: Opravuji dvojit\xe9 p\u0159esm\u011brov\xe1n\xed na [[Karc
inom ledviny]]'],
'text': [u'#P\u0158ESM\u011aRUJ [[Karcinom ledviny]]'],
'title': [u'Ca ledvin'],
'token': [u'3d5bb3852621602ab4d9f93d106a4ec4+\\']}
response=
{u'error': {u'info': u'The modification you tried to make was aborted by an exte
nsion hook', u'code': u'hookaborted'}}
Error saving page [[Ca ledvin]] (hookaborted: The modification you tried to make
was aborted by an extension hook)
```
TASK DETAIL
https://phabricator.wikimedia.org/T98591
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Wesalius
Cc: pywikipedia-bugs, Wesalius, Aklapper, jayvdb
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added projects: pywikibot-core, Pywikibot-Wikidata.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
The same functionality can be achieved as a class method of ItemPage
TASK DETAIL
https://phabricator.wikimedia.org/T98663
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: pywikipedia-bugs, Aklapper, jayvdb
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
With a sysopname set for test:test, canBeEdited() returns True, but editing the page does not work unless the sysop account is explicitly logged in.
```
$ python3 pwb.py shell
Welcome to the Pywikibot interactive shell!
>>> import pywikibot
>>> s = pywikibot.Site('test', 'test')
>>> p = pywikibot.Page(s, 'User:John Vandenberg/test protected')
>>> p.canBeEdited()
True
>>> p.text = 'Testing 1 2 3'
>>> p.save()
Logging in to test:test as JVbot
Traceback (most recent call last):
File "pywikibot/site.py", line 4163, in editpage
result = req.submit()
File "pywikibot/data/api.py", line 1734, in submit
raise APIError(**result['error'])
pywikibot.data.api.APIError: protectedpage: The "editprotected" right is required to edit this page
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/code.py", line 90, in runcode
exec(code, self.locals)
File "<console>", line 1, in <module>
File "pywikibot/tools/__init__.py", line 949, in wrapper
return obj(*__args, **__kw)
File "pywikibot/page.py", line 1051, in save
**kwargs)
File "pywikibot/page.py", line 1075, in _save
raise err
File "pywikibot/page.py", line 1062, in _save
watch=watchval, bot=botflag, **kwargs)
File "pywikibot/site.py", line 1075, in callee
return fn(self, *args, **kwargs)
File "pywikibot/site.py", line 4183, in editpage
raise self._ep_errors[err.code](page)
pywikibot.exceptions.LockedPage: Page [[test:User:John Vandenberg/test protected]] is locked.
```
None of these callers explicitly login as sysop, and two dont catch the error.
```
$ git grep canBeEdited
pywikibot/page.py: def canBeEdited(self):
pywikibot/page.py: if not self.canBeEdited():
scripts/blockpageschecker.py: # if not page.canBeEdited():
scripts/blockpageschecker.py: if not page.canBeEdited():
scripts/reflinks.py: if not page.canBeEdited():
scripts/replace.py: if not page.canBeEdited():
scripts/upload.py: if potential_file_page.canBeEdited():
$ grep login scripts/blockpageschecker.py scripts/reflinks.py scripts/replace.py scripts/upload.py
scripts/replace.py: site.login()
scripts/upload.py: self.targetSite.login()
$ grep LockedPage scripts/blockpageschecker.py scripts/reflinks.py scripts/replace.py scripts/upload.py
scripts/blockpageschecker.py: except pywikibot.LockedPage:
scripts/replace.py: except pywikibot.LockedPage:
```
TASK DETAIL
https://phabricator.wikimedia.org/T98659
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: pywikipedia-bugs, jayvdb, Aklapper