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

def radicale::ical::Calendar::write (   self,
  headers = None,
  items = None 
Write calendar with given parameters.

Definition at line 209 of file ical.py.

        """Write calendar with given parameters."""
        headers = headers or self.headers or (
            Header("PRODID:-//Radicale//NONSGML Radicale Server//EN"),
        items = items or self.items

        # Create folder if absent
        if not os.path.exists(os.path.dirname(self.path)):
        text = serialize(headers, items)
        return open(self.path, "w").write(text)

Generated by  Doxygen 1.6.0   Back to index