]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

TaskResource: Provide read-only view on _original_data via original attribute
authorTomas Babej <tomasbabej@gmail.com>
Sat, 7 Feb 2015 12:50:08 +0000 (13:50 +0100)
committerTomas Babej <tomasbabej@gmail.com>
Sat, 7 Feb 2015 12:50:08 +0000 (13:50 +0100)
tasklib/task.py

index dc2746020e8a98bf62df91ceb4d35fd3bea1757a..17af8d4977eaaea69f99e2b7608b53b2851e0cbc 100644 (file)
@@ -424,6 +424,9 @@ class Task(TaskResource):
                           for (key, value) in six.iteritems(kwargs))
         self._original_data = copy.deepcopy(self._data)
 
+        # Provide read only access to the original data
+        self.original = ReadOnlyDictView(self._original_data)
+
     def __unicode__(self):
         return self['description']