Changeset 1163 for HelpIM3/HelpIM/chat/pages/StartStaffWebChatPost.py
- Timestamp:
- 08/31/10 03:44:27 (21 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
HelpIM3/HelpIM/chat/pages/StartStaffWebChatPost.py
r987 r1163 1 1 import HelpIM.rooms 2 2 import HelpIM.chat.pages.StartWebChatBase 3 import HelpIM.chat.templates.Chat 3 4 4 5 class Handler(HelpIM.chat.pages.StartWebChatBase.Handler): … … 7 8 8 9 def getRoom(self): 10 # add check for configured cookieDb authentication here 11 # and do it ;-) 12 # this is a bit of a hack (awaiting for a authentication rewrite) 13 # but he, it works 14 if not self.posted: 15 return None 9 16 rooms = HelpIM.rooms.Rooms(self.site.application.metadata, engine=self.site.database.engine) 10 17 room = rooms.admitStaff(1) … … 16 23 def updateConfigs(self): 17 24 self.configs["NICKNAME"]=self.him_request.requestParameters["NICKNAME"] 25 for key in HelpIM.chat.templates.Chat.defaultTranslations: 26 if key in self.him_request.requestParameters.keys(): 27 self.translations[key] = self.him_request.requestParameters[key] 18 28 self.configs["ISSTAFF"]=True 19 29 20 def handlePost(self, him_request):21 # accept postdata, missing data will be compensated later on22 him_request.actionResult = None23 return him_request
