Skip to content

Commit

Permalink
Rename setHTML to setHtml to be consistent with upper/lowercase getHtml
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 24, 2011
1 parent bd678bf commit bdfeb2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/py_etherpad.py
Expand Up @@ -187,7 +187,7 @@ def setText(self, padID, text):
"text": text "text": text
}) })


def setHTML(self, padID, html): def setHtml(self, padID, html):
"""sets the text of a pad from html""" """sets the text of a pad from html"""
return self.call("setHTML", { return self.call("setHTML", {
"padID": padID, "padID": padID,
Expand Down
3 changes: 2 additions & 1 deletion src/test/test_py_etherpad.py
Expand Up @@ -29,7 +29,8 @@ def testCreateHTMLPad(self):


#Create and remove pad #Create and remove pad
print self.ep_client.createPad('htmlpad') print self.ep_client.createPad('htmlpad')
print self.ep_client.setHTML('htmlpad', content) print self.ep_client.setHtml('htmlpad', content)
print self.ep_client.getHtml('htmlpad')
print self.ep_client.deletePad('htmlpad') print self.ep_client.deletePad('htmlpad')


if __name__ == "__main__": if __name__ == "__main__":
Expand Down

0 comments on commit bdfeb2c

Please sign in to comment.