Wikimedia

Commons Mass Description: Use context processors instead of passing repetatively the same parameters

All calls of render_template recieve logged and username parameters. That's tedious and error prone. Better solution would be to use context processors to pass variables everywhere. In this task, you should go through all calls of render_template() and move logged and username parameters into a context procesor you'll create.

Student is expected to upload a patch against labs/tools/commons-mass-description repository at Wikimedia Gerrit. Student should claim Phabricator task while claiming task at the GCI site.

Materials

Task tags

  • flask
  • python

Students who completed this task

BubblySprout

Task type

  • code Code
close

2019