W Safari/Chrome nie mozna bylo zaznaczyc tekstu po zmianie rozmiaru split.
[redakcja.git] / lib / wlrepo / __init__.py
old mode 100644 (file)
new mode 100755 (executable)
index f8c07c6..ed0998c
@@ -14,7 +14,7 @@ class Library(object):
         """List all documents in the library."""
         pass
 
-    def document_for_rev(self, rev):
+    def document_for_revision(self, rev):
         """Retrieve a document in the specified revision."""
         pass
 
@@ -73,6 +73,9 @@ class Document(object):
     def parentof(self, other):
         return self._revision.parentof(other._revision)
 
+    def parent(self):
+        return self._library.document_for_revision(self._revision.parent())
+
     def has_parent_from(self, other):
         return self._revision.has_parent_from(other._revision)
 
@@ -111,6 +114,9 @@ class LibraryException(Exception):
 class UpdateException(LibraryException):
     pass
 
+class OutdatedException(LibraryException):
+    pass
+
 class RevisionNotFound(LibraryException):
     def __init__(self, rev):
         LibraryException.__init__(self, "Revision %r not found." % rev)