From 1f6c62230e5c793208600818fad26b4f19710e56 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 20 Feb 2015 18:15:08 +0100 Subject: [PATCH] SerializingObject: Add serializers, normalizers and deserializers for start and end attributes --- tasklib/task.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tasklib/task.py b/tasklib/task.py index 5c05bae..56cda19 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -149,6 +149,24 @@ class SerializingObject(object): def normalize_modified(self, value): return self.datetime_normalizer(value) + def serialize_start(self, value): + return self.timestamp_serializer(value) + + def deserialize_start(self, value): + return self.timestamp_deserializer(value) + + def normalize_start(self, value): + return self.datetime_normalizer(value) + + def serialize_end(self, value): + return self.timestamp_serializer(value) + + def deserialize_end(self, value): + return self.timestamp_deserializer(value) + + def normalize_end(self, value): + return self.datetime_normalizer(value) + def serialize_due(self, value): return self.timestamp_serializer(value) -- 2.39.5