- Timestamp:
- 03/01/11 05:52:27 (15 months ago)
- Location:
- HelpIM3/branches/chatgroups
- Files:
-
- 8 modified
-
HelpIM/chat/pages/ShowOpenSchedule.py (modified) (3 diffs)
-
HelpIM/chat/templates/Chat.py (modified) (3 diffs)
-
HelpIM/questionair/db/services.py (modified) (1 diff)
-
HelpIM/questionair/pages/RunCareSeekerPostChatQuestionair.py (modified) (1 diff)
-
config/sites/full.xml (modified) (6 diffs)
-
htdocs/chat.js (modified) (2 diffs)
-
htdocs/helpim.js (modified) (1 diff)
-
htdocs/xslt/HelpIM_html_UI_common.xslt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
HelpIM3/branches/chatgroups/HelpIM/chat/pages/ShowOpenSchedule.py
r757 r1431 12 12 self.log = logging.getLogger('HelpIM.chat.pages.ShowShifts.Handler') 13 13 self.panelId = 'ShowShifts' 14 self.panelName = ' Openingstijden'14 self.panelName = 'Gesloten' 15 15 self.showMenu = False 16 if kwargs['him_request'].site.siteConfig.dictOf__Text.has_key('ShowOpenScheduleText'): 17 self.panelMessage = kwargs['him_request'].site.siteConfig.dictOf__Text['ShowOpenScheduleText'].value 18 16 19 17 20 def showSession(self): … … 24 27 self.log.debug('.getPanelData()') 25 28 26 shiftDataElements = ['chat_shift_id', 'chat_shift_dayOfWeek', 'chat_shift_start_time', ' chat_shift_duration_time', 'endTime']29 shiftDataElements = ['chat_shift_id', 'chat_shift_dayOfWeek', 'chat_shift_start_time', 'endTime'] 27 30 order_by = ['chat_shift_dayOfWeek', 'chat_shift_start_time'] 28 shiftsList = self.site.getTableData('Table_Data', 'Table_Record', self.site.getShiftList(self.site, order_by=['chat_shift_dayOfWeek', 'chat_shift_start_time']), shiftDataElements, fieldsAsAttributes) 31 shiftsList = self.site.getTableData('Table_Data', 'Table_Record', self.site.getShiftList(self.site, order_by=['chat_shift_dayOfWeek', 'chat_shift_start_time']), shiftDataElements, fieldsAsAttributes) 32 self.log.debug("************* " + str(shiftsList['Table_Data'][1])) #[0]['Table_Record'])) 33 for i in range(len(shiftsList['Table_Data'][1])): 34 shiftsList['Table_Data'][1][i]['Table_Record'][0]["chat_shift_start_time"] = shiftsList['Table_Data'][1][i]['Table_Record'][0]["chat_shift_start_time"][:-3] + " uur" 35 shiftsList['Table_Data'][1][i]['Table_Record'][0]["endTime"] = shiftsList['Table_Data'][1][i]['Table_Record'][0]["endTime"][:-3] + " uur" 29 36 30 37 weekDayElements = {'weekDay_id':'id', 'weekDay_name':'desc'} … … 66 73 ] 67 74 }, 68 { 'table_column': [ { 'heading':'Duur',69 'attrName': 'chat_shift_duration_time'70 }71 ]72 },73 75 { 'table_column': [ { 'heading':'Eind', 74 76 'attrName': 'endTime' -
HelpIM3/branches/chatgroups/HelpIM/chat/templates/Chat.py
r1352 r1431 81 81 if not self.configs.get("NICKNAME", False): 82 82 self.configs["NICKNAME"] = "Helpline" 83 self.configs["ISSTAFF"] = "true" 83 84 else: 84 85 if not self.configs.get("TOPIC", False): … … 86 87 if not self.configs.get("NICKNAME", False): 87 88 self.configs["NICKNAME"] = "Child" 89 self.configs["ISSTAFF"] = "false" 88 90 89 91 # read config from config file … … 155 157 var STAFFCHAT = %(STAFFCHAT)s; 156 158 var MAXCHATS = %(MAXCHATS)s; 157 var ISSTAFF _RAW, ISSTAFF = "%(ISSTAFF)s";159 var ISSTAFF = %(ISSTAFF)s; 158 160 var STARTUPLINES = %(STARTUPLINES)s; 159 161 var CHATGROUP_CHAT = %(CHATGROUP_CHAT)s; -
HelpIM3/branches/chatgroups/HelpIM/questionair/db/services.py
r828 r1431 45 45 questionair = qQuery.one() 46 46 self.log.debug('Found questionair(%s)' % questionair.questionair_name) 47 # sort the fixed choice answers 48 for question in questionair.questions: 49 if question.question_type == "MK": 50 question.answerDefinitions.sort(key=lambda k: k.fcAnswer_code) 47 51 return questionair 48 52 except NoResultFound: -
HelpIM3/branches/chatgroups/HelpIM/questionair/pages/RunCareSeekerPostChatQuestionair.py
r929 r1431 21 21 self.questionair = None 22 22 self.questionairName = 'CS_POST_CHAT' 23 if kwargs['him_request'].site.siteConfig.dictOf__Text.has_key('RunCareSeekerPostChatQuestionairText'): 24 self.panelMessage = kwargs['him_request'].site.siteConfig.dictOf__Text['RunCareSeekerPostChatQuestionairText'].value 23 25 24 26 def performAction(self, *pargs, **kwargs): -
HelpIM3/branches/chatgroups/config/sites/full.xml
r1430 r1431 19 19 NumberOfChatsWaitingBeforeMe="0" 20 20 isWaitingQueueFull="False" 21 cs_subject_id="2 "21 cs_subject_id="28" 22 22 cs_nickname_id="1" 23 23 chatQueueLength="120" … … 63 63 </actionPerformed> 64 64 <actionPerformed name="AddQuestion"> 65 <actionResult name="actionResult_SUCCESS" target="ShowQuestion s">65 <actionResult name="actionResult_SUCCESS" target="ShowQuestionairs"> 66 66 <actionParm name="questionair_id" /> 67 67 </actionResult> 68 68 </actionPerformed> 69 69 <actionPerformed name="EditQuestion"> 70 <actionResult name="actionResult_SUCCESS" target="ShowQuestion s">70 <actionResult name="actionResult_SUCCESS" target="ShowQuestionairs"> 71 71 <actionParm name="questionair_id" /> 72 72 </actionResult> 73 73 </actionPerformed> 74 74 <actionPerformed name="DeleteQuestion"> 75 <actionResult name="actionResult_SUCCESS" target="ShowQuestion s">75 <actionResult name="actionResult_SUCCESS" target="ShowQuestionairs"> 76 76 <actionParm name="questionair_id" /> 77 77 </actionResult> … … 270 270 allowCookies="True" /> 271 271 <page location="EditQuestionair" module="questionair" script="EditQuestionair" 272 allowCookies="True" />273 <page location="ShowQuestions" module="questionair" script="ShowQuestions"274 272 allowCookies="True" /> 275 273 <page location="AddQuestion" module="questionair" script="AddQuestion" … … 514 512 <AuthorizedLocation key="AddQuestionair" /> 515 513 <AuthorizedLocation key="EditQuestionair" /> 516 <AuthorizedLocation key="ShowQuestions" />517 514 <AuthorizedLocation key="AddQuestion" /> 518 515 <AuthorizedLocation key="EditQuestion" /> … … 634 631 <AuthorizedLocation key="AddQuestionair" /> 635 632 <AuthorizedLocation key="EditQuestionair" /> 636 <AuthorizedLocation key="ShowQuestions" />637 633 <AuthorizedLocation key="AddQuestion" /> 638 634 <AuthorizedLocation key="EditQuestion" /> … … 692 688 <Text id="organisationName" value="Veilig Samen"/> 693 689 <Text id="chatName" value="chat"/> 694 690 <Text id="RunCareSeekerPreChatQuestionairText" value="Om je snel van dienst te kunnen zijn vragen we je voor je gaat chatten een aantal vragen te beantwoorden. Daardoor kan de hulpverlener snel to-the-point komen en het helpt ons bij het verbeteren van het aanbod op deze site. We vragen niet naar persoonsgegevens en slaan geen IP-adressen op. Je blijft dus anoniem. Als je meer wilt lezen over je privacy en veiligheid als gebruiker van deze site, kijk dan op: https://www.veiligsamen.nl/privacy"/> 691 <Text id="RunCareSeekerPostChatQuestionairText" value="Wat vind je van deze site en het gesprek dat je net had? Dit is een nieuwe site en we willen iedereen zo goed mogelijk helpen. We hopen dat je onderstaande acht vragen wilt beantwoorden. Dat kan door het beste antwoord aan te klikken. Je blijft natuurlijk anoniem. Alvast bedankt!"/> 692 <Text id="ShowOpenScheduleText" value="De chat is momenteel gesloten. Onze openingstijden zijn:"/> 695 693 </siteConfig> -
HelpIM3/branches/chatgroups/htdocs/chat.js
r1421 r1431 249 249 user.roster.subject = msg.getSubject(); 250 250 document.getElementById('header').innerHTML = TOPICHEADER+" "+htmlEnc(msg.getSubject()); 251 if (ISSTAFF == true) {251 if (ISSTAFF) { 252 252 putMsgHTML(TOPICMESSAGE+" "+msg.getSubject(), mtime, group); 253 253 } … … 257 257 /* look for startuplines */ 258 258 if (msg.getType() == 'groupchat' && msg.getBody().substring(0,16) == "[#startuplines#]") { 259 if (ISSTAFF == true) {259 if (ISSTAFF) { 260 260 putMsgHTML(msg.getBody().substring(16), mtime, group); 261 261 } -
HelpIM3/branches/chatgroups/htdocs/helpim.js
r1377 r1431 31 31 32 32 var aRoom = ROOMNAME+'@'+MUCDOMAIN; 33 34 var ISSTAFF = (ISSTAFF_RAW == "True");35 33 36 34 var FULLPOSTURI; -
HelpIM3/branches/chatgroups/htdocs/xslt/HelpIM_html_UI_common.xslt
r1419 r1431 301 301 <xsl:apply-templates 302 302 select="//panel_data//*[name()=current()/@dataTable]//*[name()=current()/@dataRecord]"> 303 <xsl:sort select="@question_ id"/>303 <xsl:sort select="@question_creation_timestamp"/> 304 304 </xsl:apply-templates> 305 305 </xsl:element>
