Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
icalendar.prop.vFloat Class Reference

List of all members.

Public Member Functions

def __init__
def ical
def from_ical

Public Attributes


Static Public Attributes

tuple from_ical = staticmethod(from_ical)

Detailed Description

Just a float.
>>> f = vFloat(1.0)
>>> f.ical()
>>> vFloat.from_ical('42')
>>> vFloat(42).ical()

Definition at line 472 of file

Constructor & Destructor Documentation

def icalendar.prop.vFloat.__init__ (   self,

Definition at line 484 of file

00485     def __init__(self, *args, **kwargs):
00486         float.__init__(self, *args, **kwargs)
00487         self.params = Parameters()

Member Function Documentation

Definition at line 491 of file

00492     def from_ical(ical):
00493         "Parses the data format from ical text format"
00494         try:
00495             return float(ical)
00496         except:
            raise ValueError, 'Expected float value, got: %s' % ical

Definition at line 488 of file

00489     def ical(self):
00490         return str(self)

Here is the caller graph for this function:

Member Data Documentation

tuple icalendar.prop.vFloat.from_ical = staticmethod(from_ical) [static]

Definition at line 497 of file

Definition at line 486 of file

The documentation for this class was generated from the following file: