- Timestamp:
- 02/27/11 22:02:09 (15 months ago)
- Location:
- HelpIM3/branches/chatgroups
- Files:
-
- 3 modified
-
HelpIM/chat/db/services.py (modified) (3 diffs)
-
HelpIM/chat/pages/ShowRequestOnQueue.py (modified) (1 diff)
-
config/sites/full.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
HelpIM3/branches/chatgroups/HelpIM/chat/db/services.py
r1387 r1425 208 208 209 209 now = datetime.now() 210 maxAge = timedelta(seconds= (chatQueueLength))210 maxAge = timedelta(seconds=chatQueueLength) 211 211 minimum_lastChatClientActivityTime = now - maxAge 212 212 chatQueueEntryList = site.getChatQueueEntryList(site, minimum_lastChatClientActivityTime=minimum_lastChatClientActivityTime) … … 224 224 """ - Toevoegen/Bijwerken van het SessionId. """ 225 225 now = datetime.now() 226 maxAge = timedelta(seconds= (chatQueueLength))226 maxAge = timedelta(seconds=chatQueueLength) 227 227 minimum_lastChatClientActivityTime = now - maxAge 228 228 chatQueueEntry = site.getChatQueueBySessionId(site=site, sessionId=him_request.sessionId) … … 234 234 """ if the careseeker has been away too long, he/she has to re-enter the queue s""" 235 235 if chatQueueEntry.chat_queue_lastChatClientActivityTime < minimum_lastChatClientActivityTime: 236 self.log.debug(".getChatQueuePostion updating chatQueueEntry, chat_queue_lastChatClientActivityTime: %s, minimum_lastChatClientActivityTime: %s" % (chatQueueEntry.chat_queue_lastChatClientActivityTime, minimum_lastChatClientActivityTime)) 236 237 chatQueueEntry.chat_queue_time_entered = datetime.now() 237 238 chatQueueEntry.chat_queue_lastChatClientActivityTime = datetime.now() -
HelpIM3/branches/chatgroups/HelpIM/chat/pages/ShowRequestOnQueue.py
r937 r1425 36 36 <p><a href="javascript:window.location.replace('%(location)s');">Klik hier als de verbinding verbroken lijkt te zijn.</a></p> 37 37 """ % {'line': line, 'location': replaceLocation} 38 #setTimeout = "<script><!-- setTimeout('window.location.replace(\"%s\")',10000); // --></script>" % replaceLocation 39 setTimeout = "<script>setTimeout('window.location.replace(\"%s\")',10000);</script>" % replaceLocation 40 html_code += setTimeout 41 38 42 htmlCode = { 'htmlCode': [ html_code ] } 39 self.panel_data = { 'panel_data': [ [ htmlCode ] ] 43 44 onloadScript = { 'onloadScript': [ setTimeout ] } 45 46 self.panel_data = { 'panel_data': [ [ htmlCode, onloadScript ] ] 40 47 } 41 48 42 49 43 setTimeout = "<script><!-- setTimeout('window.location.replace(\"%s\")',10000); // --></script>" % replaceLocation44 onloadScript = { 'onloadScript': [ setTimeout ] }45 50 46 51 47 htmlCode = { 'htmlCode': [ ] }52 # htmlCode = { 'htmlCode': [ ] } 48 53 49 54 web_panel = { 'web_panel': [ { 'panelName' : 'Wachtrij' }, 50 [ htmlCode, onloadScript ] 55 # [ htmlCode, onloadScript ] 56 [ htmlCode ] 51 57 ] 52 58 } -
HelpIM3/branches/chatgroups/config/sites/full.xml
r1423 r1425 21 21 cs_subject_id="2" 22 22 cs_nickname_id="1" 23 chatQueueLength="1 0"23 chatQueueLength="120" 24 24 maxChats="1"> 25 <!-- Note: chatQueueLength is the timeout in seconds before kicking out of the queue!! --> 26 25 27 26 28
