def object_from_dict(cls, personnel_attributes): """Create the Personnel object representation from an input dictionary""" personnel_type = common_binding.PersonnelType() for contributor_dict in personnel_attributes: contributor_type = Contributor.object_from_dict(contributor_dict) if contributor_type.hasContent_(): personnel_type.add_Contributor(contributor_type) return personnel_type
def test_contributor(self): c = Contributor() c.name = UNICODE_STR c.role = UNICODE_STR c.email = UNICODE_STR c.phone = UNICODE_STR c.organization = UNICODE_STR c2 = round_trip(c)