Now clicking cancel button returns user to previous page. Fixes issue 569.
If you don't want that behaviour you can define cancel_redirect and user will be redirected to given url on "Cancel" button click instead of redirecting to previous page.
Patch by: Daniel Hans & Pawel Solyga
[nosetests]
exclude=pymox
with-coverage=1
cover-package=soc
cover-erase=1
cover-html=1
cover-html-dir=coverageResults
#debug=nose.plugins.cover