jayvdb added a comment.
So, LogeventsPageGenerator is now in pagegenerators, however it have start and end date parameters, which means it cant be used instead of uploadedYesterday without enhancement.
So, start and end date parameters need to be added to LogeventsPageGenerator, and then it can be used to achieve the same result as uploadedYesterday.
Also, RecentChangesPageGenerator has a changetype=log , start and end date parameters, and can be restricted to namespace=6 (File). It would be useful to investigate whether it can be used to produce similar results as uploadedYesterday . i.e. is 'imageuncat -yesterday' a subset of 'imageuncat -recentchanges'.
TASK DETAIL
https://phabricator.wikimedia.org/T67192
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: pywikipedia-bugs, valhallasw, Multichill, Ricordisamoa, jayvdb
Daviskr created this task.
Daviskr added a subscriber: Daviskr.
Daviskr added a project: pywikibot-core.
TASK DESCRIPTION
Page generators can be iterated over multiple times when expected to be empty and stop after the first time. The following iterations can contain erratic results.
For example: It is possible to iterate over a generator with a for loop and then iterate over that same generator with a later for loop.
If the generator is called multiple times without `step` specified, the generator repeats itself if iterated over again. If `step` is specified, the generator shifts results erratically when called multiple times.
Below is REPL output from the `test:test` site using `PrefixingPageGenerator()`.
```
>>> ppg = PrefixingPageGenerator('a', step=2, total=3)
>>> for _ in range(3):
... print list(ppg)
...
[Page(A), Page(AAA), Page(AF Test)]
[Page(AF Test), Page(AKlapper2), Page(API output)]
[Page(AKlapper2), Page(API output), Page(API page move test)]
```
Expected output would be `[]` after the first one.
TASK DETAIL
https://phabricator.wikimedia.org/T85204
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: Daviskr
Cc: Aklapper, Daviskr, jayvdb, pywikipedia-bugs
jayvdb created this task.
jayvdb claimed this task.
jayvdb added projects: Pywikibot-interwiki.py, pywikibot-compat.
TASK DESCRIPTION
interwiki.py (core and compat) has help saying -namespace:all works. It doesnt, except for in compat using special pages (not using API). Special pages such as NewPages and RecentChanges have a dedicated option for 'all' namespaces. The API doesnt have an 'all' option for namespaces; instead the default is all namespaces.
https://en.wikipedia.org/w/api.php?action=query&generator=recentchanges&grc…
```
{
"query-continue": {
"recentchanges": {
"grccontinue": "20141224132023|701539549"
}
},
"warnings": {
"recentchanges": {
"*": "Unrecognized value for parameter 'grcnamespace': all"
},
"query": {
"*": "Formatting of continuation data will be changing soon. To continue using the current formatting, use the 'rawcontinue' parameter. To begin using the new format, pass an empty string for 'continue' in the initial query."
}
},
...
}
```
TASK DETAIL
https://phabricator.wikimedia.org/T85272
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, pywikipedia-bugs
XZise added a comment.
My current implementation of https://phabricator.wikimedia.org/T76429 is reading all parameters (including) at once and it usually handles also the pagegenerators automatically. But it doesn't prevent this:
genFactory = pagegenerators.GeneratorFactory()
genFactory.handleArg('-file:' + filename):
...
pywikibot.handleArgs()
But using handleArg isn't recommended with my patch anymore and I'm not sure about that usage.
TASK DETAIL
https://phabricator.wikimedia.org/T74120
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: pywikipedia-bugs, XZise, jayvdb, Ricordisamoa
jayvdb created this task.
jayvdb assigned this task to valhallasw.
jayvdb added subscribers: jayvdb, XZise, Xqt, Ladsgroup.
jayvdb added a project: pywikibot-core.
jayvdb changed Security from none to none.
TASK DESCRIPTION
Determine what is needed for a useful release candidate, prioritise build, tag and release, etc.
TASK DETAIL
https://phabricator.wikimedia.org/T76262
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: valhallasw, jayvdb
Cc: pywikipedia-bugs, jayvdb, XZise, Xqt, Ladsgroup