Last modified: 2014-10-12 14:02:04 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 T73980, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71980 - Implement ItemPage.makeRedirectPage(self, page)
Implement ItemPage.makeRedirectPage(self, page)
Status: NEW
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on: 71979
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-12 14:02 UTC by Maarten Dammers
Modified: 2014-10-12 14:02 UTC (History)
0 users

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


Attachments

Description Maarten Dammers 2014-10-12 14:02:04 UTC
It's now possible to create ItemPage redirects. We should implement this functionality in Pywikibot too

From https://www.wikidata.org/w/api.php

* action=wbcreateredirect *
  API module for creating Entity redirects.

This module requires read rights
This module requires write rights
This module only accepts POST requests
Parameters:
  from                - Entity ID to make a redirect
  to                  - Entity ID to point the redirect to
  token               - A 'csrf' token retrieved from action=query&meta=tokens
                        This parameter is required
  bot                 - Mark this edit as bot
                        This URL flag will only be respected if the user belongs to the group "bot".
Example:
  Turn Q11 into a redirect to Q12:
    api.php?action=wbcreateredirect&from=Q11&to=Q12

This should be two parts: Part in site and part in page.

In bug 71979 we're tracking Page.makeRedirectPage(self, page)

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


Navigation
Links