(self, name)
Assign a PROFILE to this unnamed component.

        Used by vCard, not by vCalendar.
Assign a PROFILE to this unnamed component.
Assign a PROFILE to this unnamed component .
def setProfile(self, name):
        """
        Assign a PROFILE to this unnamed component.

        Used by vCard, not by vCalendar.
        """
        if self.name or self.useBegin:
            if self.name == name:
                return
            raise VObjectError("This component already has a PROFILE or "
                               "uses BEGIN.")
        self.name = name.upper()
def setProfile ( self , name ) : if self . name or self . useBegin : if self . name == name : return raise VObjectError ( "This component already has a PROFILE or " "uses BEGIN." ) self . name = name . upper ( )