fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
834e8d8
)
Może to poprawi buga z dodawaniem dokumentów?
author
zuber
<marek@stepniowski.com>
Tue, 9 Feb 2010 20:37:28 +0000
(21:37 +0100)
committer
zuber
<marek@stepniowski.com>
Tue, 9 Feb 2010 20:37:28 +0000
(21:37 +0100)
lib/vstorage.py
patch
|
blob
|
history
diff --git
a/lib/vstorage.py
b/lib/vstorage.py
index
d67e2c1
..
9710c7b
100644
(file)
--- a/
lib/vstorage.py
+++ b/
lib/vstorage.py
@@
-285,11
+285,12
@@
class VersionedStorage(object):
def page_meta(self, title):
"""Get page's revision, date, last editor and his edit comment."""
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()
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])
rev = filectx_tip.filerev()
filectx = filectx_tip.filectx(rev)
date = datetime.datetime.fromtimestamp(filectx.date()[0])