#-*- coding:utf-8 -*- def required_chk(p): if not p: return '' for k in p: if not p[k]: return 'parameter %s is blank' % k