Major restructuring to get automatic decoding/encoding
[pycalendar.git] / pycalendar / property / component.py
diff --git a/pycalendar/property/component.py b/pycalendar/property/component.py
new file mode 100644 (file)
index 0000000..9abb811
--- /dev/null
@@ -0,0 +1,22 @@
+# Copyright
+
+"""Classes representing calendar compenents
+
+As defined in :RFC:`5545`, section 3.6 (Calendar Components).  These
+aren't really properties, but the component parsing logic is simpler
+if we pretend that they are.
+"""
+
+from . import base as _base
+
+
+class BeginComponent (_base.Property):
+    ## RFC 5545, section 3.6 (Calendar Components)
+    name = 'BEGIN'
+    dtypes = ['TEXT']
+
+
+class EndComponent (_base.Property):
+    ## RFC 5545, section 3.6 (Calendar Components)
+    name = 'END'
+    dtypes = ['TEXT']