Permalink
Browse files

Method to get public status of a pad

  • Loading branch information...
1 parent 422a59c commit 0d60833a76a98af9947c073fd7e94399785fa3e0 @sfyn committed Apr 23, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 etherpadlite/models.py
View
@@ -135,6 +135,10 @@ def Create(self):
def Destroy(self):
return self.epclient.deletePad(self.padid)
+ def isPublic(self):
+ result = self.epclient.getPublicStatus(self.padid)
+ return result['publicStatus']
+
def ReadOnly(self):
return self.epclient.getReadOnlyID(self.padid)

0 comments on commit 0d60833

Please sign in to comment.