repository: Base: add comment about lying variable name self.uiddir

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-01-11 00:17:08 +01:00
parent 2789ad26bf
commit 14de280585

View File

@ -39,6 +39,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin, object):
self.mapdir = os.path.join(self.uiddir, 'UIDMapping') self.mapdir = os.path.join(self.uiddir, 'UIDMapping')
if not os.path.exists(self.mapdir): if not os.path.exists(self.mapdir):
os.mkdir(self.mapdir, 0o700) os.mkdir(self.mapdir, 0o700)
# FIXME: self.uiddir variable name is lying about itself.
self.uiddir = os.path.join(self.uiddir, 'FolderValidity') self.uiddir = os.path.join(self.uiddir, 'FolderValidity')
if not os.path.exists(self.uiddir): if not os.path.exists(self.uiddir):
os.mkdir(self.uiddir, 0o700) os.mkdir(self.uiddir, 0o700)