Changeset 1399

Show
Ignore:
Timestamp:
02/15/11 19:16:00 (15 months ago)
Author:
zeank
Message:

added RoomBase:setPassword

refs #272

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • HelpIM3/branches/chatgroups/HelpIM/rooms.py

    r1339 r1399  
    9393        self.connection.close() 
    9494 
    95  
     95    def setPassword(self, password): 
     96        """Sets the password of the room.""" 
     97        stmt = self.table.update().where(self.table.c.jid==self.jid).values( 
     98            password=password) 
     99        rp = self.execute(stmt) 
     100        rp.close() 
     101        self.connection.close() 
     102        self.password = password 
    96103 
    97104    def destroyed(self):