Hi, this is a compat question. In archivebot.py there were these functions earlier and now I see they aren't any more. Where are they, or what is their current name? I imported archivebot to another script and it stopped.
int2month was refactored into a cleaner interface in
https://github.com/wikimedia/pywikibot-compat/commit/9b35c093b6afb573782489a...
On 29 August 2016 at 19:45, Bináris wikiposta@gmail.com wrote:
Hi, this is a compat question. In archivebot.py there were these functions earlier and now I see they aren't any more. Where are they, or what is their current name? I imported archivebot to another script and it stopped.
-- Bináris
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
Thanks! These timestamp functions could be outsourced to a standalone library for use of other scripts. My bot creates table of contents from archives, and now it has to import archivebot. Importing a common library by both would be nicer (but not a must).
2016-08-29 20:30 GMT+02:00 Merlijn van Deen (valhallasw) < valhallasw@arctus.nl>:
int2month was refactored into a cleaner interface in
https://github.com/wikimedia/pywikibot-compat/commit/ 9b35c093b6afb573782489acdac3ccbb6b0562ac
On 29 August 2016 at 19:45, Bináris wikiposta@gmail.com wrote:
Hi, this is a compat question. In archivebot.py there were these functions earlier and now I see they aren't any more. Where are they, or what is their current name? I imported archivebot to another script and it stopped.
-- Bináris
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
Yes it is recommended to split library parts from split parts. The problem might be that nobody knows which script parts are reused by private scripts.
xqt
Am 29.08.2016 um 23:51 schrieb Bináris wikiposta@gmail.com:
Thanks! These timestamp functions could be outsourced to a standalone library for use of other scripts. My bot creates table of contents from archives, and now it has to import archivebot. Importing a common library by both would be nicer (but not a must).
2016-08-29 20:30 GMT+02:00 Merlijn van Deen (valhallasw) valhallasw@arctus.nl:
int2month was refactored into a cleaner interface in
https://github.com/wikimedia/pywikibot-compat/commit/9b35c093b6afb573782489a...
On 29 August 2016 at 19:45, Bináris wikiposta@gmail.com wrote: Hi, this is a compat question. In archivebot.py there were these functions earlier and now I see they aren't any more. Where are they, or what is their current name? I imported archivebot to another script and it stopped.
-- Bináris
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
-- Bináris _______________________________________________ pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
2016-08-30 0:17 GMT+02:00 info info@gno.de:
Yes it is recommended to split library parts from split parts. The problem might be that nobody knows which script parts are reused by private scripts.
We already did such transitions in the past. 1. Creating new library. 2. Archivebot takes the patterns from new library, but its own classes are kept for a time, and write a deprecation message on user's console. 3. Half a year or a year transition time before they are removed.