Skip to content
Browse files

fix for getText + getHtml

  • Loading branch information...
1 parent 03ab72b commit c90e7d8829ff5fea8d321e3f49b6f66d2526d352 @emirotin emirotin committed Nov 2, 2011
Showing with 12 additions and 5 deletions.
  1. +12 −5 src/py_etherpad.py
View
17 src/py_etherpad.py
@@ -159,11 +159,18 @@ def listSessionsOfAuthor(self, authorID):
# Pad content can be updated and retrieved through the API
# returns the text of a pad
- # should take optional rev
- def getText(self, padID):
- return self.call("getText", {
- "padID": padID
- })
+ def getText(self, padID, rev=None):
+ params = {"padID": padID}
+ if rev is not None:
+ params['rev'] = rev
+ return self.call("getText", params)
+
+ # returns the html of a pad
+ def getHtml(self, padID, rev=None):
+ params = {"padID": padID}
+ if rev is not None:
+ params['rev'] = rev
+ return self.call("getHTML", params)
# sets the text of a pad
def setText(self, padID, text):

0 comments on commit c90e7d8

Please sign in to comment.
Something went wrong with that request. Please try again.