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

def radicale::ical::Calendar::append (   self,
  name,
  text 
)
Append items from ``text`` to calendar.

If ``name`` is given, give this name to new items in ``text``.

Definition at line 186 of file ical.py.

                                :
        """Append items from ``text`` to calendar.

        If ``name`` is given, give this name to new items in ``text``.

        """
        items = self.items

        for new_item in self._parse(text, (Timezone, Event, Todo), name):
            if new_item.name not in (item.name for item in items):
                items.append(new_item)

        self.write(items=items)


Generated by  Doxygen 1.6.0   Back to index