Changeset 114966 in indico


Ignore:
Timestamp:
10/21/10 10:33:56 (3 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
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)
Message:

Removed start meeting button

Location:
indico/MaKaC/plugins/Collaboration/WebEx
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/plugins/Collaboration/WebEx/api/operations.py

    r66081b r114966  
    223223                GenericMailer.send( notification ) 
    224224            if MailTools.needToSendEmails('WebEx'): 
     225                Logger.get('WebEx').info("We need to alert WebEx admins; attempting to send emails") 
    225226                try: 
    226227                    notification = WebExMeetingModifiedNotificationAdmin(booking) 
    227228                    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))) 
    234235            if booking._bookingParams["sendMailToManagers"]: 
    235236                try: 
     
    281282 
    282283        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))) 
    283295#            if MailTools.needToSendEmails('WebEx'): 
    284296            if True: 
    285297                try: 
    286 #                    notification = WebExParticipantNotification(booking, [ "flannery@gmail.com", "flannery@fnal.gov", "flannery@imsa.edu" ]) 
    287                     #send(addto, addcc, addfrom, subject, body): 
    288298                    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 ) 
    297305                except Exception, e: 
    298306                    Logger.get('WebEx').error( 
     
    300308                        (booking.getId(), booking.getConference().getId(), str(e))) 
    301309                
    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))) 
    311319        return None 
    312320 
  • indico/MaKaC/plugins/Collaboration/WebEx/collaboration.py

    r66081b r114966  
    2828import re 
    2929import datetime 
     30import httplib 
    3031from datetime import timedelta, datetime 
    3132from MaKaC.common.utils import formatDateTime 
     
    3536    getMinStartDate, getMaxEndDate, Participant, sendXMLRequest, \ 
    3637    WebExError, getWebExOptionValueByName, makeTime, findDuration 
    37 #from MaKaC.plugins.Collaboration.WebEx.mail import NewWebExMeetingNotificationManager 
    3838from MaKaC.plugins.Collaboration.WebEx.api.operations import WebExOperations 
    3939from MaKaC.common.logger import Logger 
     
    7474            "meetingTitle": (str, ''), 
    7575            "meetingDescription": (str, None), 
    76             "sendMailToManagers": (bool, False), 
     76#            "sendMailToManagers": (bool, False), 
    7777            "webExUser":(str, None), 
    7878            "webExPass":(str, None), 
     
    323323        Logger.get('WebEx').debug( "in _modify" ) 
    324324        if self._created: 
    325 #            result = ExternalOperationsManager.execute(self, "modifyRoom", VidyoOperations.modifyRoom, self, oldBookingParams) 
    326325            result = ExternalOperationsManager.execute(self, "modifyBooking", WebExOperations.modifyBooking, self) 
    327326            if isinstance(result, WebExError): 
     
    337336        """ 
    338337        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 
    339358        #Check if they left the trialing slash in the base URL we need 
    340359#        if getWebExOptionValueByName("WEhttpServerLocation")[-1] == "/": 
  • indico/MaKaC/plugins/Collaboration/WebEx/common.py

    r66081b r114966  
    187187        return self._id 
    188188 
     189    def getParticipantName(self): 
     190         return "%s, %s" % ( self.getFamilyName(), self.getFirstName() ) 
     191 
    189192    def getTitle(self): 
    190193        return self._title 
  • indico/MaKaC/plugins/Collaboration/WebEx/mail.py

    r66081b r114966  
    307307     
    308308    def __init__(self, booking): 
    309         EVOAdminNotificationBase.__init__(self, booking) 
    310          
    311         self.setSubject("""[EVO] EVO meeting deleted: %s (event id: %s)""" 
    312                         % (self._conference.getTitle(), str(self._conference.getId()))) 
    313          
    314         self.setBody("""Dear EVO Responsible,<br /> 
    315 <br /> 
    316 An EVO meeting <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 /> 
     316A WebEx meeting <strong>was deleted</strong> in <a href="%s">%s</a><br /> 
    317317<br /> 
    318318%s 
  • indico/MaKaC/plugins/Collaboration/WebEx/options.py

    r66081b r114966  
    5555                           "type": str, 
    5656                           "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/"} ), 
    6057    ("expirationTime", {"description" : _("Expiration time in minutes"), 
    6158                           "type": int, 
  • indico/MaKaC/plugins/Collaboration/WebEx/tpls/Main.js

    r54fef7 r114966  
    151151            '<tr><td colspan="2">'+ 
    152152                '<div class="collaborationWarning" style="display: inline;">' + 
    153                     $T('Changed by WebEx Staff:') +  
     153                    $T('Changes to WebEx event:') +  
    154154                    '<ul>' 
    155155             
Note: See TracChangeset for help on using the changeset viewer.