X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3ed70e460bfde9667995b2e15ef14b8e25e6db15..3e1aff21cb6131f52bc4ef17187af665b31654a8:/lib/vstorage.py?ds=inline diff --git a/lib/vstorage.py b/lib/vstorage.py index d67e2c10..00f844ad 100644 --- a/lib/vstorage.py +++ b/lib/vstorage.py @@ -265,7 +265,6 @@ class VersionedStorage(object): def open_page(self, title): if title not in self: - print 'whatever', list(self.all_pages()) raise DocumentNotFound() try: @@ -285,11 +284,12 @@ class VersionedStorage(object): def page_meta(self, title): """Get page's revision, date, last editor and his edit comment.""" - + if not title in self: + raise DocumentNotFound() + filectx_tip = self._find_filectx(title) if filectx_tip is None: raise DocumentNotFound() - #return -1, None, u'', u'' rev = filectx_tip.filerev() filectx = filectx_tip.filectx(rev) date = datetime.datetime.fromtimestamp(filectx.date()[0])