def _item_insert(curs, section, section_id): insert_item_detail(curs, **section) if section.has_key('misc'): for misc in section['misc']: insert_item_misc(curs, section_id, **misc)
def _item_insert(curs, section, section_id): insert_item_detail(curs, **section)