Unregister a member type. Oposite of registerType.
00545 : """ Unregister a member type. Oposite of registerType. """ amt = list(self.getAllowedMemberTypes()) # Remove type from alowed member types. if type_name in amt: amt.remove(type_name) self.setAllowedMemberTypes(amt) # If type_name is the default, set another default type. if self.getTypeName() == type_name: self.setDefaultType(new_default_type) # Migrate members when changing member type # 1) rename old member to some temp name # 2) create new member with old id # 3) transfer user assets to new member # 4) delete old member # # new_type_name = meta_type for the new Member type