Permalink
Browse files

Made it so that the API doesn't actually join the room when it does a…

…ctions.
  • Loading branch information...
1 parent 4fd0850 commit 498ab23036c022af9a3ceda17b0bb6ec05a0fe67 Ben Belchak committed May 13, 2010
Showing with 0 additions and 6 deletions.
  1. +0 −6 pinder/room.py
View
@@ -50,7 +50,6 @@ def leave(self):
def lock(self):
"Locks the room to prevent new users from entering."
- self.join()
self._post("lock")
def unlock(self):
@@ -64,30 +63,25 @@ def users(self):
def transcript(self, date=None):
("Gets the transcript for the given date "
"(a datetime.date instance) or today.")
- self.join()
date = date or datetime.date.today()
transcript_path = "transcript/%s/%s/%s" % (
date.year, date.month, date.day)
return self._get(transcript_path)['messages']
def uploads(self):
"Lists recently uploaded files."
- self.join()
return self._get('uploads')['uploads']
def speak(self, message):
"Sends a message to the room. Returns the message data."
- self.join()
return self._send(message, type_='TextMessage')['message']
def paste(self, message):
"Pastes a message to the room. Returns the message data."
- self.join()
return self._send(message, type_='PasteMessage')['message']
def sound(self, message):
"Plays a sound into the room. Returns the message data."
- self.join()
return self._send(message, type_='SoundMessage')['message']
def update(self, name, topic):

0 comments on commit 498ab23

Please sign in to comment.