Wednesday, April 4, 2012

Have never seen such a code

if info.has_key('submit_btn'):
    info['_FUNCTION_'] = 'ins_upd'
elif not info.has_key('submit_btn'):
    info['_FUNCTION_'] = 'edit'

No comments:

Post a Comment