fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket 818: better 'save' button styling.
[redakcja.git]
/
apps
/
wiki
/
views.py
diff --git
a/apps/wiki/views.py
b/apps/wiki/views.py
index
4348cb8
..
7d60341
100644
(file)
--- a/
apps/wiki/views.py
+++ b/
apps/wiki/views.py
@@
-321,6
+321,17
@@
def diff(request, name):
docB.plain_text.splitlines(), context=3))
docB.plain_text.splitlines(), context=3))
+@never_cache
+@normalized_name
+def revision(request, name):
+ storage = getstorage()
+
+ try:
+ return http.HttpResponse(str(storage.doc_meta(name)['revision']))
+ except DocumentNotFound:
+ raise http.Http404
+
+
@never_cache
@normalized_name
def history(request, name):
@never_cache
@normalized_name
def history(request, name):