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
import os, sys
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
import pkg_resources
pkg_resources.require('WebOb')