Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
icalendar.prop.vInt 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 an int.
>>> f = vInt(42)
>>> f.ical()
>>> vInt.from_ical('13')
>>> vInt.from_ical('1s3')
Traceback (most recent call last):
ValueError: Expected int, got: 1s3

Definition at line 501 of file

Constructor & Destructor Documentation

def icalendar.prop.vInt.__init__ (   self,

Definition at line 515 of file

00516     def __init__(self, *args, **kwargs):
00517         int.__init__(self, *args, **kwargs)
00518         self.params = Parameters()

Member Function Documentation

Definition at line 522 of file

00523     def from_ical(ical):
00524         "Parses the data format from ical text format"
00525         try:
00526             return int(ical)
00527         except:
            raise ValueError, 'Expected int, got: %s' % ical
def icalendar.prop.vInt.ical (   self)

Definition at line 519 of file

00520     def ical(self):
00521         return str(self)

Here is the caller graph for this function:

Member Data Documentation

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

Definition at line 528 of file

Definition at line 517 of file

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