Changeset 1427
- Timestamp:
- 02/28/11 01:54:06 (15 months ago)
- Files:
-
- 1 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
HelpIM3/branches/chatgroups/HelpIM/chat/tasks/GetConversationIdByNickname.py
r896 r1427 20 20 self.conv_id = None 21 21 try: 22 jid = self.him_request.requestParameters['jid'] 22 jid = self.him_request.requestParameters.get('jid') 23 if not jid: 24 # parameters got messed up in chat, dumb workaround for it 25 jid = self.him_request.requestParameters.get('conv_id') 26 self.log.debug(".performTask() GetConversationIdByNickName, looking for jid: %s" % jid) 23 27 rooms = HelpIM.rooms.Rooms(self.him_request.site.application.metadata, 24 28 self.him_request.site.database.engine) 25 29 room = rooms.getByJid(jid) 26 27 self.conv_id = int(room.chat_id) 30 self.log.debug('.performTask() GetConversationIdByNickName, found room: %s' % str(room)) 31 if room.chat_id: 32 self.conv_id = room.chat_id 28 33 except: 29 pass 34 self.log.exception(".performTask() GetConversationIdByNickName: got error while fetching chatId") 35 # pass 30 36 if self.conv_id is None and self.him_request.site.siteConfig.bypass_GetConfigurationIdByNickame: 31 37 self.conv_id = self.him_request.requestParameters['conv_id'] -
HelpIM3/branches/chatgroups/config/sites/full.xml
r1425 r1427 125 125 </actionPerformed> 126 126 <actionPerformed name="RunCareSeekerPostChatQuestionair"> 127 <actionResult name="actionResult_SUCCESS" target=" EndCareSeekerChat" />127 <actionResult name="actionResult_SUCCESS" target="ShowCareSeekerEnd" /> 128 128 </actionPerformed> 129 129 <actionPerformed name="RunCareWorkerPostChatQuestionair"> … … 223 223 <page location="ShowShifts" module="chat" script="ShowShifts" 224 224 allowCookies="True" /> 225 <page location="EndCareSeekerChat" module="chat" script="EndCareSeekerChat" /> 225 <page location="ShowCareSeekerEnd" module="intranet" script="ShowTextPanel" /> 226 <page location="EditCareSeekerEnd" module="intranet" script="EditTextPanel" /> 226 227 <page location="EndCareWorkerChatPanel" module="chat" 227 228 script="EndCareWorkerChatPanel" /> … … 294 295 <UnAuthorizedResource key="RunCareSeekerPreChatQuestionair" /> 295 296 <UnAuthorizedResource key="RunCareSeekerPostChatQuestionair" /> 296 <UnAuthorizedResource key=" EndCareSeekerChat" />297 <UnAuthorizedResource key="ShowCareSeekerEnd" /> 297 298 <UnAuthorizedResource key="RequestWebChat" /> 298 299 <UnAuthorizedResource key="ShowOpenSchedule" /> … … 471 472 <AuthorizedLocation key="EndCareWorkerChatPanel" /> 472 473 <AuthorizedLocation key="RunCareWorkerPostChatQuestionair" /> 474 <AuthorizedLocation key="EditCareSeekerEnd" /> 473 475 <!-- Chatrooms --> 474 476 <AuthorizedLocation key="ShowChatRooms" /> … … 596 598 <AuthorizedLocation key="EndCareWorkerChatPanel" /> 597 599 <AuthorizedLocation key="RunCareWorkerPostChatQuestionair" /> 600 <AuthorizedLocation key="EditCareSeekerEnd" /> 598 601 </RoleAuthorization> 599 602 … … 627 630 </menuEntry> 628 631 629 <Text id="EndCareSeekerChatText" value="Bedankt voor de antwoorden, je kan nu het venster sluiten" />630 632 <Text id="EndCareWorkerChatPanelText" value="Dit venster is offline." /> 631 633 <Text id="organisationName" value="Veilig Samen"/>
