XZise added a comment.

There are two different components:

- Preventing it from saving a page
- Actually skipping them in the pagegenerator

Changing the first will still allow you to iterate over them (for example in 
`python pwb.py listpages`) while the latter will not show them in `python 
pwb.py listpages` (if you use that pagegenerator) but if you don't use that 
generator it'll still work on these pages and save them. The latter would be 
something like the inverted `-grep` option. The former has the issue that every 
wiki seems to implement their own style. So sometimes a template means the 
inverted of another template, sometimes they mean the same and sometimes either 
of them can have parameters which further narrow down to which bots it applies.

At the moment the `nobots` template by default blocks the access for all or 
only to the bots listed in the first parameter while the `bots` template by 
default blocks no access and `deny`/`denyscript` can limit that while 
`allow`/`allowscript` can allow something specifically. My point is that we 
probably need a consistent way do describe those things so that they can be 
modified by site configuration (https://phabricator.wikimedia.org/T104821) or 
inside the family.

So there could be also a third component, to add a shortcut for a pagegenerator 
which skips the pages according to the `nobots`/`bots` rule present (basically 
if `page.botMayEdit` must be True to be yielded by the generator).


TASK DETAIL
  https://phabricator.wikimedia.org/T115643

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: XZise
Cc: XZise, Aklapper, Wesalius, pywikibot-bugs-list



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to