X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/d6c4fb901ad64f828287556a26daab52449dab32..ee01d50d05b7d72dd372e8f3a0c78b9da6c23b38:/lib/vstorage.py diff --git a/lib/vstorage.py b/lib/vstorage.py index 7a80c9b3..2274a044 100644 --- a/lib/vstorage.py +++ b/lib/vstorage.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import os import tempfile import datetime @@ -350,7 +354,7 @@ class VersionedStorage(object): author = unicode(filectx.user(), "utf-8", 'replace').split('<')[0].strip() comment = unicode(filectx.description(), "utf-8", 'replace') - yield rev, date, author, comment + yield {"version": rev, "date": date, "author": author, "description": comment} def page_revision(self, title, rev): """Get unicode contents of specified revision of the page."""