Last modified: 2014-07-16 10:38:01 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 T67256, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65256 - Allow ContentHandler to transform content on import and export
Allow ContentHandler to transform content on import and export
Status: VERIFIED FIXED
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
u=dev c=backend p=2 s=2014-05-20
:
Depends on:
Blocks: 63228
  Show dependency treegraph
 
Reported: 2014-05-13 12:57 UTC by Daniel Kinzler
Modified: 2014-07-16 10:38 UTC (History)
4 users (show)

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


Attachments

Description Daniel Kinzler 2014-05-13 12:57:12 UTC
ContentHandler should have importTransform( $text, $format ) and exportTransform( $text, $format ) methods to be called when importing/exporting pages. Per default, these functions would pass the text through unchanged.

The purpose of having these functions would be to give the ContentHandler a chance to validate or transform imported content according to local settings, and to normalize (possible old legacy) content serializations on export.
Comment 1 Gerrit Notification Bot 2014-05-20 17:13:19 UTC
Change 134387 had a related patch set uploaded by Daniel Kinzler:
Introduce ContentHandler::importTransform.

https://gerrit.wikimedia.org/r/134387
Comment 2 Gerrit Notification Bot 2014-05-20 17:23:50 UTC
Change 134389 had a related patch set uploaded by Daniel Kinzler:
Introduce ContentHandler::exportTransform()

https://gerrit.wikimedia.org/r/134389
Comment 3 Gerrit Notification Bot 2014-05-27 18:26:22 UTC
Change 134387 merged by jenkins-bot:
Introduce ContentHandler::importTransform.

https://gerrit.wikimedia.org/r/134387
Comment 4 Gerrit Notification Bot 2014-05-27 18:31:07 UTC
Change 134389 merged by jenkins-bot:
Introduce ContentHandler::exportTransform()

https://gerrit.wikimedia.org/r/134389

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


Navigation
Links