Qgil added a comment.
Do you think this is a good candidate for the next GSoC/Outreachy round?
Also, is this really a High priority task?
TASK DETAIL
https://phabricator.wikimedia.org/T61678
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: Qgil
Cc: Qgil, Daniel_Mietchen, jayvdb, valhallasw, Ricordisamoa, 555, Multichill, Ladsgroup, pywikipedia-bugs
Multichill created this task.
Multichill added a subscriber: Multichill.
Multichill added projects: Pywikibot-Wikidata, pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
We can convert dimension to precision, but the other way around will throw a NotImplementedError, see
https://git.wikimedia.org/blob/pywikibot%2Fcore.git/HEAD/pywikibot%2F__init…
Would be nice to have this implemented too.
TASK DETAIL
https://phabricator.wikimedia.org/T89670
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: Multichill
Cc: pywikipedia-bugs, Aklapper, Multichill, jayvdb
Xqt created this task.
Xqt added a subscriber: Xqt.
Xqt added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
```
C:\pwb\core>pwb.py vm-auto-erl-neu -cc
WARNING: .\scripts\vm-auto-erl-neu.py:560: _NotImplementedWarning: pywikibot.bot
.handleArgs is deprecated.
for arg in pywikibot.handleArgs():
Traceback (most recent call last):
File "C:\Python27\lib\logging\handlers.py", line 77, in emit
if self.shouldRollover(record):
File "C:\Python27\lib\logging\handlers.py", line 156, in shouldRollover
msg = "%s\n" % self.format(record)
File "C:\pwb\core\pywikibot\bot.py", line 121, in format
assert(msg.startswith(record.pathname + ':'))
AssertionError
Logged from file tools.py, line 743
NOTE: option cosmetic_changes is False
########## timestamp: 2015-02-11T13:06:09Z ############```
Anyhow the script is running.
TASK DETAIL
https://phabricator.wikimedia.org/T89233
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: Xqt
Cc: pywikipedia-bugs, Xqt, Aklapper, jayvdb
XZise added a comment.
Well my newest version of the patch does by default what you need, but it also could add the missing months if you want it.
TASK DETAIL
https://phabricator.wikimedia.org/T73124
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: XZise
Cc: Xqt, Legoktm, jayvdb, Multichill, XZise, pywikipedia-bugs
Xqt added a comment.
I personally need the first variant 31.03. + 1 month => 30.4. but it could be a good idea to have both possibilities for rounding up and down.
TASK DETAIL
https://phabricator.wikimedia.org/T73124
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: Xqt
Cc: Xqt, Legoktm, jayvdb, Multichill, XZise, pywikipedia-bugs
XZise added a comment.
Okay I've got a question: What would be the 31st March + 1 month? Would it be the last day in April or the 1 day in May? Or like PHP which selects the day in the month after that (so 31 May).
This doesn't affect the calculation of the difference however. That would be probably easier than the calculation as you could simply add the month difference and years difference multiplied by 12. So something like:
delta = (date2.month - date1.month) % 12 + (date2.year - date1.year) * 12
return -delta if date2 < date1 else delta
TASK DETAIL
https://phabricator.wikimedia.org/T73124
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: XZise
Cc: Xqt, Legoktm, jayvdb, Multichill, XZise, pywikipedia-bugs
jayvdb added a comment.
@xzise , yes, that is a problem with "any number of users per APISite object" - it means APISite needs logic to determine which account to use when, and IMO that should be done in scripts with the bot operator in control, and not done inside the pywikibot library.
TASK DETAIL
https://phabricator.wikimedia.org/T71283
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: XZise, jayvdb, Ricordisamoa, pywikipedia-bugs