Back to index

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

List of all members.

Public Member Functions

def __init__
def __repr__
def ical
def from_ical
def __str__

Public Attributes

 params

Static Public Attributes

tuple from_ical = staticmethod(from_ical)

Detailed Description

This just returns an unquoted string
>>> a = vCalAddress('MAILTO:maxm@mxm.dk')
>>> a.params['cn'] = 'Max M'
>>> a.ical()
'MAILTO:maxm@mxm.dk'
>>> str(a)
'MAILTO:maxm@mxm.dk'
>>> a.params
Parameters({'CN': 'Max M'})
>>> vCalAddress.from_ical('MAILTO:maxm@mxm.dk')
'MAILTO:maxm@mxm.dk'

Definition at line 151 of file prop.py.


Constructor & Destructor Documentation

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

Definition at line 166 of file prop.py.

00166 
00167     def __init__(self, *args, **kwargs):
00168         str.__init__(self, *args, **kwargs)
00169         self.params = Parameters()


Member Function Documentation

Definition at line 170 of file prop.py.

00170 
00171     def __repr__(self):
00172         return u"vCalAddress(%s)" % str.__repr__(self)

Definition at line 184 of file prop.py.

00184 
00185     def __str__(self):
00186         return str.__str__(self)

Definition at line 176 of file prop.py.

00176 
00177     def from_ical(ical):
00178         "Parses the data format from ical text format"
00179         try:
00180             return str(ical)
00181         except:
            raise ValueError, 'Expected vCalAddress, got: %s' % ical

Definition at line 173 of file prop.py.

00173 
00174     def ical(self):
00175         return str(self)

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 182 of file prop.py.

Definition at line 168 of file prop.py.


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