﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2586	New Manipulators Proposal	brantley	Adrian Holovaty	"I have built a [http://code.djangoproject.com/wiki/NewManipulators proposal] for a new Manipulator system, which solves what I consider to be a long-standing problem in Django.  Here are some of the benefits of this new system:
 * Custom form views become very simple, and intuitive.
 * Validation aware models are harnessed.
 * Forms are raised as an exception.  This allows the writer to assume the data is correct the whole way through. However, when there is a validation exception, it is handled easily.

The full proposal can be found here:
[http://code.djangoproject.com/wiki/NewManipulators]

Here is a sample view using a default Create-Manipulator:
{{{
#!python
def create_poll(request):
   try:
       m = Poll.CreateManipulator()
       poll = m.process(request)
       return HttpResponseRedirect('/poll/%d/' % poll.id)
   except Form, form:
       return render_to_response('poll/create.html', {'form': form})
}}}

Feedback and criticism would be greatly appreciated."	enhancement	closed	Metasystem		normal	fixed			Design decision needed	0	0	0	0	0	0
