GSoC/GCI Archive
Google Code-in 2010 MoinMoin Wiki

refactor views render calls

completed by: Julian Brost

mentors: Alexander Schremmer, ReimarBauer, Thomas Waldmann, Ronny Pfannschmidt


Several views have multiple render calls - if POST fails, normally you just want to render as it was GET (plus posted data + feedback).


Your task is to do a global review and carefully refactor this code.

  • see (old code at top, new at bottom)

  • check if we have unwanted redirects after error
  • if some place is unclear, discuss it with moin devs
  • try your code after changing

Deliverables: patch or changeset(s)


Less code duplication.

Skill Requirements

See tags. We expect some python / jinja2 coding experience and that you are doing this thoroughly and carefully.

Note: unless otherwise noted, tasks usually refer to moin2 (!

You can discuss this issue in the MoinMoin wiki: