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

 params

Static Public Attributes

tuple from_ical = staticmethod(from_ical)

Detailed Description

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

Definition at line 472 of file prop.py.


Constructor & Destructor Documentation

def icalendar.prop.vFloat.__init__ (   self,
  args,
  kwargs 
)

Definition at line 484 of file prop.py.

00484 
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 prop.py.

00491 
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 prop.py.

00488 
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 prop.py.

Definition at line 486 of file prop.py.


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