def post2locals(dict=locals(),func=None):
for k,v in request.POST.iterallitems():
dict["_"+k]=v
if func is not None and callable(func):
dict["_"+k]=func(v)
for k,v in request.POST.iterallitems():
dict["_"+k]=v
if func is not None and callable(func):
dict["_"+k]=func(v)
![](http://img.zemanta.com/pixy.gif?x-id=0064af1a-89c2-8463-933c-6b5ea65a66ed)