Changeset 1164

Show
Ignore:
Timestamp:
08/31/10 11:19:16 (18 months ago)
Author:
winfried
Message:

Fixing some bugs in extentions for chi

Location:
HelpIM3
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • HelpIM3/HelpIM/chat/pages/StartWebChatBase.py

    r1163 r1164  
    119119 
    120120        self.scriptName = kwargs['him_request'].requestParameters["SCRIPT_NAME"] 
    121         organisation = self.site.siteConfig.dictOf__Text.get('organisationName', 'HelpIM') 
    122         chatName = self.site.siteConfig.dictOf__Text.get('chatName', 'training chat') 
    123         title = "%s - %s" % (organisation.value, chatName.value) 
    124         self.translations['TITLE'] = title 
    125         self.translations['CLIENTSTART'] = "Welkom in de %s %s" % (organisation.value, chatName.value) 
     121        organisation = self.site.siteConfig.dictOf__Text.get('organisationName') 
     122        chatName = self.site.siteConfig.dictOf__Text.get('chatName') 
     123        if chatName and organisation: 
     124            title = "%s - %s" % (organisation.value, chatName.value) 
     125            self.translations['TITLE'] = title 
     126            self.translations['CLIENTSTART'] = "Welkom in de %s %s" % (organisation.value, chatName.value) 
    126127        self.room = self.getRoom() 
    127128        self.site.flush(self.site) 
  • HelpIM3/config/sites/chi.xml

    r1162 r1164  
    2525        <listOf__page> 
    2626                <!-- Base --> 
    27                 <page location="" module="chat" script="StartEmbeddedClientChat" 
     27                <page location="" module="chat" script="StartClientWebChatPost" 
    2828                        allowCookies="False" /> 
    29                 <page location="staff.html" module="chat" script="StartEmbeddedStaffChat" 
     29                <page location="staff.html" module="chat" script="StartStaffWebChatPost" 
    3030                        allowCookies="False" /> 
    3131                <page location="status" module="chat" script="ChatEmbeddedStatus"