Example #1
0
 def _checkParams(self):
     AdminService._checkParams(self)
     pm = ParameterManager(self._params)
     user_id = pm.extract("userId", pType=int, allowEmpty=False)
     self._user = User.get(user_id)
     if self._user is None:
         raise NoReportError(_("The user that you are trying to login as does not exist anymore in the database"))
Example #2
0
 def _checkParams(self):
     CollaborationBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._bookingType = pm.extract("type", pType=str, allowEmpty=False)
     self._query = pm.extract("query", pType=str, allowEmpty=False)
     self._limit = pm.extract("limit", pType=int, allowEmpty=True, defaultValue=None)
     self._offset = pm.extract("offset", pType=int, allowEmpty=True, defaultValue=0)
Example #3
0
 def _checkParams(self):
     AdminService._checkParams(self)
     pm = ParameterManager(self._params)
     user_id = pm.extract("userId", pType=int, allowEmpty=False)
     self._user = User.get(user_id)
     if self._user is None:
         raise NoReportError(_("The user that you are trying to login as does not exist anymore in the database"))
Example #4
0
 def _checkParams(self):
     CategoryControlUserListBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._principals = [
         principal_from_fossil(f, allow_pending=True) for f in pm.extract("userList", pType=list, allowEmpty=False)
     ]
     self._sendEmailManagers = pm.extract("sendEmailManagers", pType=bool, allowEmpty=True, defaultValue=True)
Example #5
0
 def _checkParams(self):
     AbstractReviewingBase._checkParams(self)
     pm = ParameterManager(self._params)
     # we need to do like this because the value sent is an str (inherit of InlineEditWidget)
     self._value = pm.extract("value", pType=dict, allowEmpty=False)
     self._min = int(self._value["min"])
     self._max = int(self._value["max"])
Example #6
0
 def _checkParams(self):
     ConferenceModifBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._principals = [
         principal_from_fossil(f, allow_pending=True, legacy=False)
         for f in pm.extract("userList", pType=list, allowEmpty=False)
     ]
Example #7
0
 def _checkParams(self):
     AbstractReviewingBase._checkParams(self)
     pm = ParameterManager(self._params)
     # we need to do like this because the value sent is an str (inherit of InlineEditWidget)
     self._value = pm.extract("value", pType=dict, allowEmpty=False)
     self._min = int(self._value["min"])
     self._max = int(self._value["max"])
Example #8
0
 def _checkParams(self):
     ConferenceChairPersonBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._userData = pm.extract("userData", pType=dict, allowEmpty=False)
     self._chairId = pm.extract("userId", pType=str, allowEmpty=False)
     if self._userData.get("email", "") != "" and self._isEmailAlreadyUsed():
         raise ServiceAccessError(_("The email address is already used by another chairperson. Chairperson not modified."))
Example #9
0
 def _checkParams(self):
     SessionChairListBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._principals = [
         principal_from_fossil(f, allow_pending=True)
         for f in pm.extract("userList", pType=list, allowEmpty=False)
     ]
Example #10
0
 def _checkParams(self, params):
     RHRegistrationFormModifSectionBase._checkParams(self, params)
     self._pm = ParameterManager(params)
     fieldId = self._pm.extract('fieldId', pType=str, allowEmpty=False)
     self._field = self._section.getFieldById(fieldId)
     if not self._field:
         raise MaKaCError(_("Invalid field Id"))
Example #11
0
 def _checkParams(self):
     AbstractReviewingBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._trackId = pm.extract("track", pType=str, allowEmpty=False)
     self._reviewerList = pm.extract("userList",
                                     pType=list,
                                     allowEmpty=False)
Example #12
0
 def _checkParams(self):
     AdminService._checkParams(self)
     pm = ParameterManager(self._params)
     self._userId = pm.extract("userId", pType=str, allowEmpty=False)
     self._av = AvatarHolder().getById(self._userId)
     if self._av == None:
         raise NoReportError(_("The user that you are trying to login as does not exist anymore in the database"))
Example #13
0
 def _checkParams(self):
     AbstractReviewingBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._trackId = pm.extract("track", pType=str, allowEmpty=False)
     self._reviewerId = pm.extract("userId", pType=str, allowEmpty=True, defaultValue=None)
     if (self._reviewerId == None):
         self._reviewerId = pm.extract("user", pType=str, allowEmpty=False)
    def _checkParams_POST(self):
        defaultArrivalOffset = [-2, 0]
        defaultDepartureOffset = [1, 3]

        post_pm = ParameterManager(decode(request.data))
        self._arrivalOffsetDates = post_pm.extract(
            'arrivalOffsetDates',
            pType=list,
            allowEmpty=False,
            defaultValue=defaultArrivalOffset)
        self._departureOffsetDates = post_pm.extract(
            'departureOffsetDates',
            pType=list,
            allowEmpty=False,
            defaultValue=defaultDepartureOffset)
        self._items = post_pm.extract('items', pType=list, allowEmpty=False)

        if (len(self._arrivalOffsetDates) != 2 or
                self._arrivalOffsetDates[0] == '' or
                self._arrivalOffsetDates[1] == ''):
            self._arrivalOffsetDates = defaultArrivalOffset
        if (len(self._departureOffsetDates) != 2 or
                self._departureOffsetDates[0] == '' or
                self._departureOffsetDates[1] == ''):
            self._departureOffsetDates = defaultDepartureOffset
Example #15
0
 def _checkParams(self):
     ConferenceModifBase._checkParams(self)
     pm = ParameterManager(self._params)
     submitterId = pm.extract("submitterId", pType=str, allowEmpty=False)
     abstractId = pm.extract("abstractId", pType=str, allowEmpty=False)
     self._abstract = self._conf.getAbstractMgr().getAbstractById(abstractId)
     self._submitter = user.AvatarHolder().getById(submitterId)
Example #16
0
    def _checkParams(self):
        ConferenceListModificationBase._checkParams(self)
        pm = ParameterManager(self._params)
        self._selTypes = pm.extract("selTypes",
                                    pType=list,
                                    allowEmpty=True,
                                    defaultValue=[])  # ids of selected types
        self._selTracks = pm.extract("selTracks",
                                     pType=list,
                                     allowEmpty=True,
                                     defaultValue=[])  # ids of selected tracks
        self._selSessions = pm.extract(
            "selSessions", pType=list, allowEmpty=True,
            defaultValue=[])  # ids of selected sessions

        self._typeShowNoValue = self._params.get("typeShowNoValue", True)
        self._trackShowNoValue = self._params.get("trackShowNoValue", True)
        self._sessionShowNoValue = self._params.get("sessionShowNoValue", True)

        self._showWithoutTeam = self._params.get("showWithoutTeam", True)
        self._showWithReferee = self._params.get("showWithReferee", False)
        self._showWithEditor = self._params.get("showWithEditor", False)
        self._showWithReviewer = self._params.get("showWithReviewer", False)

        self._showWithMaterial = self._params.get("showWithMaterial", False)
        self._showWithoutMaterial = self._params.get("showWithoutMaterial",
                                                     False)
Example #17
0
 def _checkParams(self):
     AdminService._checkParams(self)
     pm = ParameterManager(self._params)
     self._userId = pm.extract("userId", pType=str, allowEmpty=False)
     self._av = AvatarHolder().getById(self._userId)
     if self._av == None:
         raise ServiceError("ER-U0", _("Cannot find user with id %s") % self._userId)
Example #18
0
    def _checkParams_POST(self):
        defaultArrivalOffset = [-2, 0]
        defaultDepartureOffset = [1, 3]

        post_pm = ParameterManager(decode(request.data))
        self._arrivalOffsetDates = post_pm.extract(
            'arrivalOffsetDates',
            pType=list,
            allowEmpty=False,
            defaultValue=defaultArrivalOffset)
        self._departureOffsetDates = post_pm.extract(
            'departureOffsetDates',
            pType=list,
            allowEmpty=False,
            defaultValue=defaultDepartureOffset)
        self._items = post_pm.extract('items', pType=list, allowEmpty=False)

        if (len(self._arrivalOffsetDates) != 2
                or self._arrivalOffsetDates[0] == ''
                or self._arrivalOffsetDates[1] == ''):
            self._arrivalOffsetDates = defaultArrivalOffset
        if (len(self._departureOffsetDates) != 2
                or self._departureOffsetDates[0] == ''
                or self._departureOffsetDates[1] == ''):
            self._departureOffsetDates = defaultDepartureOffset
Example #19
0
 def _checkParams(self):
     AbstractReviewingBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._trackId = pm.extract("track", pType=str, allowEmpty=False)
     self._reviewerId = pm.extract("userId", pType=str, allowEmpty=True, defaultValue=None)
     if (self._reviewerId == None):
         self._reviewerId = pm.extract("user", pType=str, allowEmpty=False)
Example #20
0
 def _checkParams(self):
     pm = ParameterManager(self._params)
     userId = pm.extract("userId", str, False, "")
     self._currentUser = self.getAW().getUser()
     self._target = self._avatar = user.AvatarHolder().getById(userId)
     if self._target == None:
         raise ServiceAccessError((_("The user with does not exist")))
Example #21
0
 def _checkParams(self):
     ConferenceReviewingPRMBase._checkParams(self)
     self._dueDateToChange = self._params.get("dueDateToChange")
     pm = ParameterManager(self._params.get('value'),
                           timezone=self._conf.getTimezone())
     self._date = pm.extract('date', pType=datetime.datetime)
     self._apply = pm.extract('applyToContributions', pType=bool)
Example #22
0
    def _checkParams(self):
        self._pm = ParameterManager(self._params)

        self._id = self._pm.extract('id', pType=str)
        self._name = self._pm.extract('name', pType=str)
        self._description = self._pm.extract('description', pType=str)
        self._specificParams = self._params['specific']
Example #23
0
 def _checkParams(self):
     CollaborationBookingModifBase._checkParams(self)
     
     if self._params.has_key('bookingParams'):
         pm = ParameterManager(self._params)
         self._bookingParams = pm.extract("bookingParams", pType=dict, allowEmpty = True)
     else:
         raise CollaborationException(_("Custom parameters for booking ") + str(self._bookingId) + _(" not set when trying to edit a booking on meeting ") + str(self._conf.getId() ))
Example #24
0
    def _checkParams(self):
        CollaborationBase._checkParams(self)

        if 'bookingParams' in self._params:
            pm = ParameterManager(self._params)
            self._bookingParams = pm.extract("bookingParams", pType=dict, allowEmpty = True)
        else:
            raise CollaborationException(_("Custom parameters for plugin ") + str(self._type) + _(" not set when trying to create a booking on meeting ") + str(self._conf.getId() ))
Example #25
0
class AgentModificationService(AdminService):
    def _checkParams(self):
        self._pm = ParameterManager(self._params)

        self._id = self._pm.extract("id", pType=str)
        self._name = self._pm.extract("name", pType=str)
        self._description = self._pm.extract("description", pType=str)
        self._specificParams = self._params["specific"]
Example #26
0
 def _checkParams(self):
     SessionChairListBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._chairId = pm.extract("userId", pType=str, allowEmpty=False)
     self._kindOfUser = pm.extract("kindOfUser",
                                   pType=str,
                                   allowEmpty=True,
                                   defaultValue=None)
Example #27
0
 def _checkParams(self):
     self._pm = ParameterManager(self._params)
     userId = self._pm.extract("userId", None)
     if userId is not None:
         ah = user.AvatarHolder()
         self._target = ah.getById(userId)
     else:
         raise ServiceError("ERR-U5", _("User id not specified"))
Example #28
0
 def _checkParams(self):
     SessionConvenersBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._userList = pm.extract("userList", pType=list, allowEmpty=False)
     # Check if there is already a user with the same email
     for user in self._userList:
         if self._isEmailAlreadyUsed(user["email"]):
             raise ServiceAccessError(_("The email address (%s) of a user you are trying to add is already used by another convener or the user is already added to the list. Convener(s) not added.") % user["email"])
Example #29
0
 def _checkParams(self):
     ConferenceModifBase._checkParams(self)
     pm = ParameterManager(self._params)
     ah = AvatarHolder()
     userId = pm.extract("userId", pType=str, allowEmpty=False)
     self._user = ah.getById(userId)
     if self._user == None:
         raise ServiceError("ERR-U0", _("User '%s' does not exist.") % userId)
Example #30
0
    def _checkParams(self):
        AdminService._checkParams(self)

        pm = ParameterManager(self._params)

        self._title = pm.extract("title", pType=str, allowEmpty=False)
        self._type = pm.extract("type", pType=str, allowEmpty=False)
        self._content = pm.extract("content", pType=str, allowEmpty=True)
Example #31
0
 def _checkParams(self):
     UserModifyBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._third_party_app = pm.extract("third_party_app",
                                        pType=str,
                                        allowEmpty=False)
     if self._third_party_app is None:
         raise ServiceError("ERR-U5", _("Third party ap not specified"))
Example #32
0
 def _checkParams(self):
     CategoryControlUserListBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._userList = pm.extract("userList", pType=list, allowEmpty=False)
     self._sendEmailManagers = pm.extract("sendEmailManagers",
                                          pType=bool,
                                          allowEmpty=True,
                                          defaultValue=True)
Example #33
0
 def _checkParams(self):
     SessionConvenersBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._userList = pm.extract("userList", pType=list, allowEmpty=False)
     # Check if there is already a user with the same email
     for user in self._userList:
         if self._isEmailAlreadyUsed(user["email"]):
             raise ServiceAccessError(_("The email address (%s) of a user you are trying to add is already used by another convener or the user is already added to the list. Convener(s) not added.") % user["email"])
Example #34
0
 def _checkParams(self):
     AbstractReviewingBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._value = pm.extract("value", pType=str,
                              allowEmpty=False)  # value is the question id
     self._keepJud = pm.extract(
         "keepJud", pType=bool,
         allowEmpty=False)  # keep the previous judgements of the question
Example #35
0
    def _checkParams(self):

        ConferenceModifBase._checkParams(self)

        pm = ParameterManager(self._params.get("value"), timezone=self._conf.getTimezone())

        self._startDate = pm.extract("startDate", pType=datetime.datetime)
        self._endDate = pm.extract("endDate", pType=datetime.datetime)
Example #36
0
class AgentModificationService(AdminService):
    def _checkParams(self):
        self._pm = ParameterManager(self._params)

        self._id = self._pm.extract('id', pType=str)
        self._name = self._pm.extract('name', pType=str)
        self._description = self._pm.extract('description', pType=str)
        self._specificParams = self._params['specific']
Example #37
0
 def _checkParams(self):
     pm = ParameterManager(self._params)
     self._reportNumber = pm.extract("reportNumber",
                                     pType=str,
                                     allowEmpty=False)
     self._reportNumberSystem = pm.extract("reportNumberSystem",
                                           pType=str,
                                           allowEmpty=False)
Example #38
0
 def _checkParams(self):
     CollaborationBase._checkParams(self)
             
     if 'bookingParams' in self._params:
         pm = ParameterManager(self._params)
         self._bookingParams = pm.extract("bookingParams", pType=dict, allowEmpty = True)
     else:
         raise CollaborationException(_("Custom parameters for plugin ") + str(self._type) + _(" not set when trying to create a booking on meeting ") + str(self._conf.getId() ))
Example #39
0
 def _checkParams(self):
     pManager = ParameterManager(self._params)
     self._userMail = pManager.extract("userMail", pType=str, allowEmpty=True)
     self._code = pManager.extract("code", pType=str, allowEmpty=True)
     self._message = pManager.extract("message", pType=str, allowEmpty=True)
     inner = self._params.get('inner', '')
     self._inner = '\n'.join(inner) if isinstance(inner, list) else inner
     self._requestInfo = pManager.extract("requestInfo", pType=dict)
Example #40
0
    def _checkParams(self):
        CollaborationBookingModif._checkParams(self)

        if self._params.has_key('bookingParams'):
            pm = ParameterManager(self._params)
            self._bookingParams = pm.extract("bookingParams", pType=dict, allowEmpty = True)
        else:
            raise CollaborationException(_("Custom parameters for booking ") + str(self._bookingId) + _(" not set when trying to edit a booking on meeting ") + str(self._conf.getId() ))
Example #41
0
 def _checkParams(self):
     AdminService._checkParams(self)
     pm = ParameterManager(self._params)
     self._wm = webcast.HelperWebcastManager.getWebcastManagerInstance()
     self._userId = pm.extract("userId", pType=str, allowEmpty=False)
     self._pr = PrincipalHolder().getById(self._userId)
     if self._pr == None:
         raise ServiceError("ER-U0", _("Cannot find user with id %s") % self._userId)
Example #42
0
 def _checkParams(self):
     if 'userData' in self._params:
         pm = ParameterManager(self._params)
         self._userData = pm.extract("userData",
                                     pType=dict,
                                     allowEmpty=True)
     else:
         raise ServiceError("ERR-E6", '"userData" parameter missing')
Example #43
0
 def _checkParams(self):
     AdminService._checkParams(self)
     self._pm = ParameterManager(self._params)
     gh = GroupHolder()
     groupId = self._pm.extract("groupId", pType=str, allowEmpty=False)
     self._group = gh.getById(groupId)
     if self._group == None:
         raise ServiceError("ER-G0", _("Cannot find group with id %s") % groupId)
Example #44
0
 def _checkParams(self):
     params = self._params or {}  # if params is not specified it's an empty list
     pManager = ParameterManager(params)
     self._userMail = pManager.extract("userMail", pType=str, allowEmpty=True)
     self._code = pManager.extract("code", pType=str, allowEmpty=True)
     self._message = pManager.extract("message", pType=str, allowEmpty=True)
     inner = params.get("inner", "")
     self._inner = "\n".join(inner) if isinstance(inner, list) else inner
     self._requestInfo = pManager.extract("requestInfo", pType=dict, allowEmpty=True)
Example #45
0
 def _checkParams(self):
     UserModificationBase._checkParams(self)
     ConferenceReviewingBase._checkParams(self)
     if self._params.has_key("contributions"):
         pm = ParameterManager(self._params)
         contributionsIds = {int(c) for c in pm.extract("contributions", pType=list, allowEmpty=False)}
         self._contributions = [contrib for contrib in self._event.contributions if contrib.id in contributionsIds]
     else:
         raise ServiceError("ERR-REV2", _("List of contribution ids not set"))
Example #46
0
 def _checkParams(self):
     ConferenceModifBase._checkParams(self)
     pm = ParameterManager(self._params)
     submitterId = pm.extract("submitterId", pType=str, allowEmpty=False)
     abstractId = pm.extract("abstractId", pType=str, allowEmpty=False)
     self._abstract = self._conf.getAbstractMgr().getAbstractById(abstractId)
     self._submitter = user.AvatarHolder().getById(submitterId)
     if self._submitter is None:
         raise NoReportError(_("The user that you are changing does not exist anymore in the database"))
Example #47
0
 def _checkParams(self):
     ConferenceModifBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._chairperson = self._conf.getChairById(pm.extract("userId", pType=str, allowEmpty=False))
     if self._chairperson == None:
         raise ServiceAccessError(_("The user that you are trying to delete does not exist."))
     if self._chairperson.getEmail() == "":
         raise ServiceAccessError(_("It is not possible to grant submission rights to a participant without an email address. Please set an email address."))
     self._action = pm.extract("action", pType=str, allowEmpty=False)
Example #48
0
 def _checkParams(self):
     SessionConvenerActionBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._userData = pm.extract("userData", pType=dict, allowEmpty=False)
     email = self._userData.get("email", "")
     if (email == "" and (self._userData.get("manager", False) or self._userData.get("coordinator", False))):
         raise ServiceAccessError(_("It is not possible to grant any rights to a convener with an empty email address. Convener not edited."))
     if (email != "" and self._isEmailUsedByOther()):
         raise ServiceAccessError(_("The email address (%s) is already used by another convener. Convener data not edited.") % email)
Example #49
0
 def _checkParams(self):
     ConferenceChairPersonBase._checkParams(self)
     pm = ParameterManager(self._params)
     self._userList = pm.extract("userList", pType=list, allowEmpty=False)
     self._submissionRights = pm.extract("presenter-grant-submission", pType=bool, allowEmpty=False)
     # Check if there is already a user with the same email
     for person in self._userList:
         if self._isEmailAlreadyUsed(person["email"]):
             raise ServiceAccessError(_("A user with the email address %s is already in the Chairpersons list. Chairperson(s) not added.") % person["email"])
Example #50
0
    def _checkParams(self):
        ServiceBase._checkParams(self)

        pm = ParameterManager(self._params)

        self._tz = pm.extract("timezone", pType=str, allowEmpty=False)
        pm.setTimezone(self._tz)
        self._sDate = pm.extract("sDate", pType=datetime.datetime, allowEmpty=False)
        self._eDate = pm.extract("eDate", pType=datetime.datetime, allowEmpty=False)
Example #51
0
class AgentModificationService(AdminService):

    def _checkParams(self):
        self._pm = ParameterManager(self._params)

        self._id = self._pm.extract('id', pType=str)
        self._name = self._pm.extract('name', pType=str)
        self._description = self._pm.extract('description', pType=str)
        self._specificParams = self._params['specific']
Example #52
0
 def _checkParams(self):
     UserModificationBase._checkParams(self)
     ConferenceReviewingBase._checkParams(self)
     if self._params.has_key('contributions'):
         pm = ParameterManager(self._params)
         contributionsIds = pm.extract("contributions", pType=list, allowEmpty=False)
         self._contributions = [self._conf.getContributionById(contributionId) for contributionId in contributionsIds]
     else:
         raise ServiceError("ERR-REV2",_("List of contribution ids not set"))
Example #53
0
class SendElectronicAgreement(ConferenceModifBase):

    def _checkParams(self):
        ConferenceModifBase._checkParams(self)

        self._pm = ParameterManager(self._params)
        self.uniqueIdList = self._pm.extract("uniqueIdList", list, False, [])
        fromMail = self._pm.extract("from", dict, False, {})
        self.fromEmail = fromMail['email']
        self.fromName = fromMail['name']
        self.content = self._pm.extract("content", str, False, "")
        p_cc = self._pm.extract("cc", str, True, "").strip()
        self.cc = setValidEmailSeparators(p_cc).split(',') if p_cc else []
        self.emailToList = []
        manager = self._conf.getCSBookingManager()
        for uniqueId in self.uniqueIdList:
            spk = manager.getSpeakerWrapperByUniqueId(uniqueId)
            if spk.getStatus() not in [SpeakerStatusEnum.SIGNED, SpeakerStatusEnum.FROMFILE]:
                self.emailToList.extend(manager.getSpeakerEmailByUniqueId(uniqueId, self._aw.getUser()))

    def processContent(self, speakerWrapper):
        fullUrl = UHCollaborationElectronicAgreementForm().getURL(self._conf.getId(), speakerWrapper.getUniqueIdHash())
        url = "<a href='%s'>%s</a>"%(fullUrl, fullUrl)

        talkTitle = speakerWrapper.getContribution().getTitle() if speakerWrapper.getContribution() else self._conf.getTitle()

        mailEnv = dict(url=url, talkTitle = talkTitle, name= speakerWrapper.getObject().getDirectFullName())
        return permissive_format(self.content, mailEnv)

    def _getAnswer(self):
        report = ""
        i = 0
        for email in self.emailToList:
            i += 1
            if i != len(self.emailToList):
                report += "%s, "%email
            else:
                report += "%s."%email

        #{url} and {talkTitle} are mandatory to send the EA link
        if self.content.find('{url}') == -1:
            report = "url_error"
        elif self.content.find('{talkTitle}') == -1:
            report = "talkTitle_error"
        else:
            manager = self._conf.getCSBookingManager()
            for uniqueId in self.uniqueIdList:
                sw = manager.getSpeakerWrapperByUniqueId(uniqueId)
                if sw.getStatus() not in [SpeakerStatusEnum.SIGNED, SpeakerStatusEnum.FROMFILE]:
                    sw.setStatus(SpeakerStatusEnum.PENDING)
                    subject = """[Indico] Electronic Agreement: '%s'"""%(self._conf.getTitle())
                    notification = ElectronicAgreementNotification([sw.getObject().getEmail()], self.cc, self.fromEmail, self.fromName, self.processContent(sw), subject)

                    GenericMailer.sendAndLog(notification, self._conf,
                                             "MaKaC/plugins/Collaboration/RecordingRequest/collaboration.py",
                                             None)
        return report