Logo Search packages:      
Sourcecode: libical version File versions  Download package

def DerivedProperties::Recurrence_Id::value_parameter (   self,
  v = None 
)

Sets or gets the VALUE parameter value.

The value passed should be either "DATE-TIME" or "DATE".  Setting this
parameter has no impact on the property's value_type.  Doing something
like:

rid=Recurrence_Id("19960401")    # Sets value & makes value_type="DATE"
rid.value_parameter("DATE-TIME") # Sets the parameter VALUE=DATE-TIME

Would be allowed (even though it is wrong), so pay attention.
Verifying the component will reveal the error.

Definition at line 89 of file DerivedProperties.py.

00089                                      :
        """Sets or gets the VALUE parameter value.

        The value passed should be either "DATE-TIME" or "DATE".  Setting this
        parameter has no impact on the property's value_type.  Doing something
        like:

        rid=Recurrence_Id("19960401")    # Sets value & makes value_type="DATE"
        rid.value_parameter("DATE-TIME") # Sets the parameter VALUE=DATE-TIME

        Would be allowed (even though it is wrong), so pay attention.
        Verifying the component will reveal the error.
        """
        if v!=None and v!="DATE" and v!="DATE-TIME":
            raise ValueError, "%s is an invalid VALUE parameter value" % str(v)
        self._doParam("VALUE", v)

    def tzid(self, v=None):


Generated by  Doxygen 1.6.0   Back to index