Changeset 8698 for branches/gajim_0.11.1/src
- Timestamp:
- 09/03/07 11:04:21 (15 months ago)
- Files:
-
- 1 modified
-
branches/gajim_0.11.1/src/dialogs.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11.1/src/dialogs.py
r8660 r8698 1128 1128 1129 1129 class JoinGroupchatWindow: 1130 def __init__(self, account, room_jid = '', nick = '', automatic = False): 1130 def __init__(self, account, room_jid = '', nick = '', password = '', 1131 automatic = False): 1131 1132 '''automatic is a dict like {'invities': []} 1132 1133 If automatic is not empty, this means room must be automaticaly configured … … 1152 1153 self._room_jid_entry = self.xml.get_widget('room_jid_entry') 1153 1154 self._nickname_entry = self.xml.get_widget('nickname_entry') 1155 self._password_entry = self.xml.get_widget('password_entry') 1154 1156 1155 1157 self._room_jid_entry.set_text(room_jid) 1156 1158 self._nickname_entry.set_text(nick) 1159 if password: 1160 self._password_entry.set_text(password) 1157 1161 self.xml.signal_autoconnect(self) 1158 1162 gajim.interface.instances[account]['join_gc'] = self #now add us to open windows … … 1222 1226 nickname = self._nickname_entry.get_text().decode('utf-8') 1223 1227 room_jid = self._room_jid_entry.get_text().decode('utf-8') 1224 password = self.xml.get_widget('password_entry').get_text().decode( 1225 'utf-8') 1228 password = self._password_entry.get_text().decode('utf-8') 1226 1229 user, server, resource = helpers.decompose_jid(room_jid) 1227 1230 if not user or not server or resource: … … 2251 2254 self.room_jid = room_jid 2252 2255 self.account = account 2256 self.password = password 2253 2257 xml = gtkgui_helpers.get_glade('invitation_received_dialog.glade') 2254 2258 self.dialog = xml.get_widget('invitation_received_dialog') … … 2284 2288 self.dialog.destroy() 2285 2289 try: 2286 JoinGroupchatWindow(self.account, self.room_jid) 2290 JoinGroupchatWindow(self.account, self.room_jid, 2291 password=self.password) 2287 2292 except GajimGeneralException: 2288 2293 pass
