Last modified: 2014-05-30 09:24:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67312, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65312 - newitem.py should auto-skip certain pages
newitem.py should auto-skip certain pages
Status: ASSIGNED
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: xqt
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-14 20:43 UTC by JAn Dudík
Modified: 2014-05-30 09:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch for accidenatlly created userpages (817 bytes, application/octet-stream)
2014-05-30 07:38 UTC, JAn Dudík
Details

Description JAn Dudík 2014-05-14 20:43:35 UTC
this script is hardly usable for other namespaces like templates.

It should skip /doc subpages, user namespace, talk pages, subpages in project namespace.
Comment 1 xqt 2014-05-29 16:38:37 UTC
you may use -namespace Option which is already implemented and comes from pagegenerators
Comment 2 JAn Dudík 2014-05-30 07:25:58 UTC
-namespace is useful when running for some list of pages (usage of template).
But when running on -namespace:10 or 4 or 100, bot should auto skip subpages 

(but not all pages with "/" are subpages (e.g. Template:NHL 2014/15), so when running from -file: bot shoud create these pages too)
Comment 3 JAn Dudík 2014-05-30 07:38:36 UTC
Created attachment 15531 [details]
Patch for accidenatlly created userpages

When I accidentally forgot to add -namespace:0, bot should'nt create new items for userpages

(note:there is change of default dates too, I am not very familiar with creating patches, so I left it in patch too)


Source: 
https://www.wikidata.org/w/index.php?
title=User%3AUnderlying_lk%2Fharvest_template.py&diff=116897965&oldid=116884354
Comment 5 xqt 2014-05-30 09:03:37 UTC
You may use our Gerrit uploaded script for patches. I'll have a look on your attachment soon.
Comment 6 Maarten Dammers 2014-05-30 09:24:05 UTC
-1 on the patch, you should use -namespace for that.

For the subpages we should probably have another filter pagegenerator so that this functionality is available for all programs.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links