mozilla/kuma — pull request #41 by lmorchard (2011-10-28 19:02:50+00:00)
Title: bug 688244: Section editing on client and server

Needs feedback, NOT QUITE YET READY FOR MERGE.

This stuff appears to be working, but it's sorely lacking in tests. I spent a lot of time experimenting and throwing away both tests and tested code, so I eventually gave up on the tests and put them off for later. Back-filling tests, at least for the server-side of things, is what I'm up to next.

* Inject section editing links on view when user can edit

* Server-side implementation of section editing

* Client-side implementation of inline AJAX-powered section editing

* Document view can be filtered by section, serve raw source without
template wrapping

* Edit document post with a ?section parameter will load form with just
content for a single section, save content just to a single section

* Section editing links can be enabled or disabled with a parameter

* Title and slug editing disallowed during section editing, since it
caused some issues and should really be done in full view of doc

* Watch and Edit links on document view shown only for capable users

* Bugfixes for cases where a large number of revisions ran into problems
with memcached errors

* Tweaks to CKEditor mdn-buttons plugin to support inline editor

* Tweaks to allowed tags and attributes in bleach handling

* Tweaks to CKEditor HTML writer for cleaner HTML with fewer line breaks
within headers and paragraphs

* Initial CSS tweaks for editor and CKEditor layout

* Random PEP8 fixes & tweaks