Major restructuring to get automatic decoding/encoding
[pycalendar.git] / pycalendar / component / calendar.py
diff --git a/pycalendar/component/calendar.py b/pycalendar/component/calendar.py
new file mode 100644 (file)
index 0000000..31c60b8
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright
+
+from . import base as _base
+
+
+class Calendar (_base.Component):
+    """A calendar
+
+    As defined in :RFC:`5545`, section 3.4 (iCalendar Object).
+    """
+    name = 'VCALENDAR'
+    # contents defined in RFC 5545, section 3.6 (Calendar Components)
+    required = [
+        'PRODID',
+        'VERSION',
+        ]
+    optional = [
+        'CALSCALE',
+        'METHOD',
+        'X-PROP',
+        'IANA-PROP',
+        ]
+    multiple = [
+        'X-PROP',
+        'IANA-PROP',
+        ]
+    subcomponents = [
+        'VEVENT',
+        'VTODO',
+        'VJOURNAL',
+        'VFREEBUSY',
+        'VTIMEZONE',
+        'VIANA-COMP',
+        'VXCOMP',
+        ]