Changeset 1427 for HelpIM3

Show
Ignore:
Timestamp:
02/28/11 01:54:06 (15 months ago)
Author:
winfried
Message:

- fixing the questionairres after the chats
- fixing the adding of the registration questions after the chat
- fixing the 'thank-you' page after answering the questions
- adding an offline data extraction tool for HelpIM2

Location:
HelpIM3/branches/chatgroups
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • HelpIM3/branches/chatgroups/HelpIM/chat/tasks/GetConversationIdByNickname.py

    r896 r1427  
    2020        self.conv_id = None 
    2121        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) 
    2327            rooms = HelpIM.rooms.Rooms(self.him_request.site.application.metadata, 
    2428                                       self.him_request.site.database.engine) 
    2529            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 
    2833        except: 
    29             pass     
     34            self.log.exception(".performTask() GetConversationIdByNickName: got error while fetching chatId") 
     35            # pass     
    3036        if self.conv_id is None and self.him_request.site.siteConfig.bypass_GetConfigurationIdByNickame: 
    3137            self.conv_id = self.him_request.requestParameters['conv_id'] 
  • HelpIM3/branches/chatgroups/config/sites/full.xml

    r1425 r1427  
    125125                </actionPerformed> 
    126126                <actionPerformed name="RunCareSeekerPostChatQuestionair"> 
    127                         <actionResult name="actionResult_SUCCESS" target="EndCareSeekerChat" /> 
     127                        <actionResult name="actionResult_SUCCESS" target="ShowCareSeekerEnd" /> 
    128128                </actionPerformed> 
    129129                <actionPerformed name="RunCareWorkerPostChatQuestionair"> 
     
    223223                <page location="ShowShifts" module="chat" script="ShowShifts" 
    224224                        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" /> 
    226227                <page location="EndCareWorkerChatPanel" module="chat" 
    227228                        script="EndCareWorkerChatPanel" /> 
     
    294295        <UnAuthorizedResource key="RunCareSeekerPreChatQuestionair" /> 
    295296        <UnAuthorizedResource key="RunCareSeekerPostChatQuestionair" /> 
    296         <UnAuthorizedResource key="EndCareSeekerChat" /> 
     297        <UnAuthorizedResource key="ShowCareSeekerEnd" /> 
    297298        <UnAuthorizedResource key="RequestWebChat" /> 
    298299        <UnAuthorizedResource key="ShowOpenSchedule" /> 
     
    471472                <AuthorizedLocation key="EndCareWorkerChatPanel" /> 
    472473                <AuthorizedLocation key="RunCareWorkerPostChatQuestionair" /> 
     474                <AuthorizedLocation key="EditCareSeekerEnd" /> 
    473475                <!-- Chatrooms --> 
    474476                <AuthorizedLocation key="ShowChatRooms" /> 
     
    596598                <AuthorizedLocation key="EndCareWorkerChatPanel" /> 
    597599                <AuthorizedLocation key="RunCareWorkerPostChatQuestionair" /> 
     600                <AuthorizedLocation key="EditCareSeekerEnd" /> 
    598601        </RoleAuthorization> 
    599602 
     
    627630        </menuEntry> 
    628631 
    629         <Text id="EndCareSeekerChatText" value="Bedankt voor de antwoorden, je kan nu het venster sluiten" /> 
    630632        <Text id="EndCareWorkerChatPanelText" value="Dit venster is offline." /> 
    631633        <Text id="organisationName" value="Veilig Samen"/>