def delete_partner(partner_id): partner = Partner() partner.partner_id = partner_id partner.is_del = 1 partner.persist()
def add_partner(partner_id, name, server_zone): partner = Partner() partner.partner_id = partner_id partner.name = name partner.server_zone = server_zone partner.persist()