Changeset 114966 in indico
- Timestamp:
- 10/21/10 10:33:56 (3 years ago)
- Branches:
- new-webex
- Children:
- 5aefa1
- Parents:
- 66081b
- git-author:
- Kevin Flannery <flannery@…> (06/03/10 23:15:23)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (10/21/10 10:33:56)
- Location:
- indico/MaKaC/plugins/Collaboration/WebEx
- Files:
-
- 6 edited
-
api/operations.py (modified) (3 diffs)
-
collaboration.py (modified) (5 diffs)
-
common.py (modified) (1 diff)
-
mail.py (modified) (1 diff)
-
options.py (modified) (1 diff)
-
tpls/Main.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/plugins/Collaboration/WebEx/api/operations.py
r66081b r114966 223 223 GenericMailer.send( notification ) 224 224 if MailTools.needToSendEmails('WebEx'): 225 Logger.get('WebEx').info("We need to alert WebEx admins; attempting to send emails") 225 226 try: 226 227 notification = WebExMeetingModifiedNotificationAdmin(booking) 227 228 GenericMailer.sendAndLog(notification, booking.getConference(), 228 "MaKaC/plugins/Collaboration/WebEx/collaboration.py",229 booking.getConference().getCreator())230 except Exception, e: 231 Logger.get('WebEx').error( 232 """Could not send WebExMeetingModifiedNotificationAdmin for booking with id %s of event with id %s, exception: %s""" %233 (booking.getId(), booking.getConference().getId(), str(e)))229 "MaKaC/plugins/Collaboration/WebEx/collaboration.py", 230 booking.getConference().getCreator()) 231 except Exception, e: 232 Logger.get('WebEx').error( 233 """Could not send WebExMeetingModifiedNotificationAdmin for booking with id %s of event with id %s, exception: %s""" % 234 (booking.getId(), booking.getConference().getId(), str(e))) 234 235 if booking._bookingParams["sendMailToManagers"]: 235 236 try: … … 281 282 282 283 if booking._created: 284 if MailTools.needToSendEmails('WebEx'): 285 Logger.get('WebEx').info("We need to alert WebEx admins; attempting to send emails") 286 try: 287 notification = WebExMeetingRemovalNotificationAdmin(booking) 288 GenericMailer.sendAndLog(notification, booking.getConference(), 289 "MaKaC/plugins/Collaboration/WebEx/collaboration.py", 290 booking.getConference().getCreator()) 291 except Exception, e: 292 Logger.get('WebEx').error( 293 """Could not send WebExMeetingRemovalNotificationAdmin for booking with id %s of event with id %s, exception: %s""" % 294 (booking.getId(), booking.getConference().getId(), str(e))) 283 295 # if MailTools.needToSendEmails('WebEx'): 284 296 if True: 285 297 try: 286 # notification = WebExParticipantNotification(booking, [ "flannery@gmail.com", "flannery@fnal.gov", "flannery@imsa.edu" ])287 #send(addto, addcc, addfrom, subject, body):288 298 Logger.get('WebEx').info("I am in the mailer block") 289 recipients = "" 290 for k in participants.keys(): 291 recipients += participants[k]._email + " , " 292 Logger.get('WebEx').info("Recipients: " + recipients ) 293 personMail.send(recipients, "", "Kevin O'Flannery", "A Subject", "Some body in here" ) 294 #notification, booking.getConference(), 295 # "MaKaC/plugins/Collaboration/WebEx/collaboration.py", 296 # booking.getConference().getCreator()) 299 recipients = [] 300 for k in booking._participants.keys(): 301 recipients.append( booking._participants[k]._email ) 302 if len(recipients)>0: 303 notification = WebExParticipantNotification( booking, recipients, 'delete' ) 304 GenericMailer.send( notification ) 297 305 except Exception, e: 298 306 Logger.get('WebEx').error( … … 300 308 (booking.getId(), booking.getConference().getId(), str(e))) 301 309 302 #if booking._bookingParams["sendMailToManagers"]:303 #try:304 # notification = EVOMeetingRemovalNotificationManager(booking)305 #GenericMailer.sendAndLog(notification, booking.getConference(),306 #"MaKaC/plugins/Collaboration/WebEx/collaboration.py",307 #booking.getConference().getCreator())308 #except Exception,e:309 # Logger.get('EVO').error(310 #"""Could not send EVOMeetingRemovalNotificationManager for booking with id %s , exception: %s""" % (booking._id, str(e)))310 if booking._bookingParams["sendMailToManagers"]: 311 try: 312 notification = WebExMeetingRemovalNotificationManager(booking) 313 GenericMailer.sendAndLog(notification, booking.getConference(), 314 "MaKaC/plugins/Collaboration/WebEx/collaboration.py", 315 booking.getConference().getCreator()) 316 except Exception,e: 317 Logger.get('WebEx').error( 318 """Could not send EVOMeetingRemovalNotificationManager for booking with id %s , exception: %s""" % (booking._id, str(e))) 311 319 return None 312 320 -
indico/MaKaC/plugins/Collaboration/WebEx/collaboration.py
r66081b r114966 28 28 import re 29 29 import datetime 30 import httplib 30 31 from datetime import timedelta, datetime 31 32 from MaKaC.common.utils import formatDateTime … … 35 36 getMinStartDate, getMaxEndDate, Participant, sendXMLRequest, \ 36 37 WebExError, getWebExOptionValueByName, makeTime, findDuration 37 #from MaKaC.plugins.Collaboration.WebEx.mail import NewWebExMeetingNotificationManager38 38 from MaKaC.plugins.Collaboration.WebEx.api.operations import WebExOperations 39 39 from MaKaC.common.logger import Logger … … 74 74 "meetingTitle": (str, ''), 75 75 "meetingDescription": (str, None), 76 "sendMailToManagers": (bool, False),76 # "sendMailToManagers": (bool, False), 77 77 "webExUser":(str, None), 78 78 "webExPass":(str, None), … … 323 323 Logger.get('WebEx').debug( "in _modify" ) 324 324 if self._created: 325 # result = ExternalOperationsManager.execute(self, "modifyRoom", VidyoOperations.modifyRoom, self, oldBookingParams)326 325 result = ExternalOperationsManager.execute(self, "modifyBooking", WebExOperations.modifyBooking, self) 327 326 if isinstance(result, WebExError): … … 337 336 """ 338 337 Logger.get('WebEx').debug( "in _start" ) 338 ########################## 339 # try: 340 # site_name = re.split( '.webex.com', getWebExOptionValueByName("WEhttpServerLocation").lower())[0] 341 # except: 342 # raise WebExException(_("Could not isolate the site name from the given site URL in the WebEx plugin configuration in the administration area.\n") ) 343 # try: 344 ##### urllib.urllibopen( "https://" + site_name + ".webex.com/" + site_name + "/m.php?AT=HM&MK=" + self._webExKey ) 345 # conn = httplib.HTTPSConnection( getWebExOptionValueByName("WEhttpServerLocation") ) 346 # values = {} 347 # conn.request( "POST", "/" + site_name + "/p.php?AT=LO", values ) 348 # response = conn.getresponse() 349 ################### 350 #print the_xml 351 #print response.read() 352 # urllib.urllibopen( "https://" + site_name + ".webex.com/" + site_name + "/m.php?AT=HM&MK=" + self._webExKey ) 353 # except: 354 # raise WebExException(_("Could not connect to site url and start the meeting.\n") ) 355 356 357 339 358 #Check if they left the trialing slash in the base URL we need 340 359 # if getWebExOptionValueByName("WEhttpServerLocation")[-1] == "/": -
indico/MaKaC/plugins/Collaboration/WebEx/common.py
r66081b r114966 187 187 return self._id 188 188 189 def getParticipantName(self): 190 return "%s, %s" % ( self.getFamilyName(), self.getFirstName() ) 191 189 192 def getTitle(self): 190 193 return self._title -
indico/MaKaC/plugins/Collaboration/WebEx/mail.py
r66081b r114966 307 307 308 308 def __init__(self, booking): 309 EVOAdminNotificationBase.__init__(self, booking)310 311 self.setSubject("""[ EVO] EVOmeeting deleted: %s (event id: %s)"""312 % (self._conference.getTitle(), str(self._conference.getId()))) 313 314 self.setBody("""Dear EVOResponsible,<br />315 <br /> 316 A n EVOmeeting <strong>was deleted</strong> in <a href="%s">%s</a><br />309 WebExAdminNotificationBase.__init__(self, booking) 310 311 self.setSubject("""[Indico] WebEx meeting deleted: %s (event id: %s)""" 312 % (self._conference.getTitle(), str(self._conference.getId()))) 313 314 self.setBody("""Dear WebEx Responsible,<br /> 315 <br /> 316 A WebEx meeting <strong>was deleted</strong> in <a href="%s">%s</a><br /> 317 317 <br /> 318 318 %s -
indico/MaKaC/plugins/Collaboration/WebEx/options.py
r66081b r114966 55 55 "type": str, 56 56 "defaultValue": "apidemoeu.webex.com"} ), 57 ("WEautoJoinURL", {"description" : _("WebEx HTTP path to for auto-join script"),58 "type": str,59 "defaultValue": "https://apidemoeu.webex.com/apidemoeu/"} ),60 57 ("expirationTime", {"description" : _("Expiration time in minutes"), 61 58 "type": int, -
indico/MaKaC/plugins/Collaboration/WebEx/tpls/Main.js
r54fef7 r114966 151 151 '<tr><td colspan="2">'+ 152 152 '<div class="collaborationWarning" style="display: inline;">' + 153 $T('Change d by WebEx Staff:') +153 $T('Changes to WebEx event:') + 154 154 '<ul>' 155 155
Note: See TracChangeset
for help on using the changeset viewer.
