Changeset a6c717 in indico
- Timestamp:
- 06/07/10 18:50:14 (3 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, new-webex, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- e3ef9c
- Parents:
- 16a6b5
- git-author:
- Ian Rolewicz <ian.rolewicz@…> (05/05/10 13:27:47)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (06/07/10 18:50:14)
- Location:
- indico/MaKaC
- Files:
-
- 8 edited
-
plugins/Collaboration/RecordingRequest/collaboration.py (modified) (2 diffs)
-
plugins/Collaboration/RecordingRequest/common.py (modified) (1 diff)
-
plugins/Collaboration/RecordingRequest/mail.py (modified) (2 diffs)
-
plugins/Collaboration/WebcastRequest/collaboration.py (modified) (2 diffs)
-
plugins/Collaboration/WebcastRequest/mail.py (modified) (2 diffs)
-
plugins/Collaboration/base.py (modified) (3 diffs)
-
services/implementation/collaboration.py (modified) (1 diff)
-
services/interface/rpc/process.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/plugins/Collaboration/RecordingRequest/collaboration.py
rd3cb3f ra6c717 111 111 pass 112 112 113 def _accept(self ):113 def _accept(self, user = None): 114 114 self._statusMessage = "Request accepted" 115 115 self._statusClass = "statusMessageOK" … … 127 127 if MailTools.needToSendEmails('RecordingRequest'): 128 128 try: 129 notificationAdmin = RequestAcceptedNotificationAdmin(self )129 notificationAdmin = RequestAcceptedNotificationAdmin(self, user) 130 130 GenericMailer.sendAndLog(notificationAdmin, self.getConference(), 131 131 "MaKaC/plugins/Collaboration/RecordingRequest/collaboration.py", -
indico/MaKaC/plugins/Collaboration/RecordingRequest/common.py
r5a8326 ra6c717 99 99 100 100 def __init__(self, operation, inner): 101 CSErrorBase.__init__(self)102 101 self._operation = operation 103 102 self._inner = inner -
indico/MaKaC/plugins/Collaboration/RecordingRequest/mail.py
r398f39 ra6c717 405 405 """ 406 406 407 def __init__(self, booking ):407 def __init__(self, booking, user = None): 408 408 RecordingRequestAdminNotificationBase.__init__(self, booking) 409 409 … … 411 411 % (self._conference.getTitle(), str(self._conference.getId()))) 412 412 413 userInfo = "" 414 if user : 415 userInfo = " by %s %s"%(user.getFirstName(), user.getFamilyName().upper()) 413 416 self.setBody("""Dear Recording Responsible,<br /> 414 417 <br /> 415 A recording request for the event: "%s" has been accepted in <a href="%s">%s</a><br /> 418 A recording request for the event: "%s" has been accepted in <a href="%s">%s</a>"""%(self._conference.getTitle(), 419 MailTools.getServerName(), 420 MailTools.getServerName()) 421 + userInfo + """.<br /> 416 422 Click <a href="%s">here</a> to view the request.<br /> 417 423 418 """ % ( self._conference.getTitle(), 419 MailTools.getServerName(), 420 MailTools.getServerName(), 421 self._modifLink 422 )) 424 """ % ( self._modifLink )) 423 425 424 426 -
indico/MaKaC/plugins/Collaboration/WebcastRequest/collaboration.py
rd3cb3f ra6c717 108 108 pass 109 109 110 def _accept(self ):110 def _accept(self, user = None): 111 111 self._statusMessage = "Request accepted" 112 112 self._statusClass = "statusMessageOK" … … 126 126 if MailTools.needToSendEmails('WebcastRequest'): 127 127 try: 128 notification = RequestAcceptedNotificationAdmin(self )128 notification = RequestAcceptedNotificationAdmin(self, user) 129 129 GenericMailer.sendAndLog(notification, self.getConference(), 130 130 "MaKaC/plugins/Collaboration/WebcastRequest/collaboration.py", -
indico/MaKaC/plugins/Collaboration/WebcastRequest/mail.py
r398f39 ra6c717 406 406 """ 407 407 408 def __init__(self, booking ):408 def __init__(self, booking, user = None): 409 409 WebcastRequestAdminNotificationBase.__init__(self, booking) 410 410 … … 412 412 % (self._conference.getTitle(), str(self._conference.getId()))) 413 413 414 userInfo = "" 415 if user : 416 userInfo = " by %s %s" %(user.getFirstName(), user.getFamilyName().upper()) 414 417 self.setBody("""Dear Webcast Responsible,<br /> 415 418 <br /> 416 A webcast request for the event: "%s" has been accepted in <a href="%s">%s</a><br /> 419 A webcast request for the event: "%s" has been accepted in <a href="%s">%s</a>""" %(self._conference.getTitle(), 420 MailTools.getServerName(), 421 MailTools.getServerName()) 422 + userInfo + """.<br /> 417 423 Click <a href="%s">here</a> to view the request.<br /> 418 424 419 """ % ( self._conference.getTitle(), 420 MailTools.getServerName(), 421 MailTools.getServerName(), 422 self._modifLink 423 )) 425 """ % (self._modifLink)) 424 426 425 427 -
indico/MaKaC/plugins/Collaboration/base.py
re11c57 ra6c717 374 374 raise ServiceError(_("Tried to check status of booking ") + str(id) + _(" of meeting ") + str(self._conf.getId()) + _(" but this booking does not support the check status service.")) 375 375 376 def acceptBooking(self, id ):376 def acceptBooking(self, id, user = None): 377 377 booking = self._bookings[id] 378 378 if booking.hasAcceptReject(): 379 379 if booking.getAcceptRejectStatus() is None: 380 380 self._removeFromPendingIndex(booking) 381 booking.accept( )381 booking.accept(user) 382 382 return booking 383 383 else: … … 1019 1019 return self._statusClass 1020 1020 1021 def accept(self ):1021 def accept(self, user = None): 1022 1022 """ Sets this booking as accepted 1023 1023 """ 1024 1024 self._acceptRejectStatus = True 1025 self._accept( )1025 self._accept(user) 1026 1026 1027 1027 def reject(self, reason): … … 1456 1456 pass 1457 1457 1458 def _accept(self ):1458 def _accept(self, user = None): 1459 1459 """ To be overriden by inheriting classes 1460 1460 This method is called when a user with privileges presses the "Accept" button -
indico/MaKaC/services/implementation/collaboration.py
r299cb7 ra6c717 189 189 """ 190 190 def _getAnswer(self): 191 return fossilize(self._CSBookingManager.acceptBooking(self._bookingId ),191 return fossilize(self._CSBookingManager.acceptBooking(self._bookingId, self.getAW().getUser()), 192 192 None, tz = self._conf.getTimezone()) 193 193 -
indico/MaKaC/services/interface/rpc/process.py
r626e2c ra6c717 22 22 handler = endpoint.methodMap.get(functionName, None) 23 23 if handler != None: 24 break 24 break 25 25 try: 26 26 endpointName, functionName = method.split(".", 1) … … 34 34 else: 35 35 raise RequestError("ERR-R1", "Unsupported method") 36 36 37 37 return handler 38 38 … … 110 110 if minfo.getRoomBookingModuleActive(): 111 111 CrossLocationDB.connect() 112 112 113 113 def _endRequestSpecific2RH( commit = True ): 114 114 minfo = info.HelperMaKaCInfo.getMaKaCInfoInstance() 115 115 if minfo.getRoomBookingModuleActive(): 116 if commit: 116 if commit: 117 117 CrossLocationDB.commit() 118 else: 118 else: 119 119 CrossLocationDB.rollback() 120 120 CrossLocationDB.disconnect()
Note: See TracChangeset
for help on using the changeset viewer.
