add comment

This commit is contained in:
Markus Unterwaditzer 2014-11-20 13:52:24 +01:00
parent 09f3ad10fb
commit 0f5fdd6d39

View file

@ -95,6 +95,13 @@ class Item(object):
'''Used for generating hrefs and matching up items during '''Used for generating hrefs and matching up items during
synchronization. This is either the UID or the hash of the item's synchronization. This is either the UID or the hash of the item's
content.''' content.'''
# We hash the item instead of directly using its raw content, because
#
# 1. The raw content might be really large, e.g. when its a contact
# with a picture, which bloats the status file.
#
# 2. The status file would contain really sensitive information.
return self.uid or self.hash return self.uid or self.hash
@cached_property @cached_property