def _checkParams(self, params): RHConfModifCFABase._checkParams(self, params) self._title = params.get("title", "") self._description = params.get("description", "") self._subject = params.get("subject", "") self._body = params.get("body", "") self._fromAddr = params.get("fromAddr", "") self._toList = self._normaliseListParam(params.get("toAddrs", [])) auxCCList = params.get("CCAddrs", "") # replace to have only one separator auxCCList = auxCCList.replace(" ", ",").replace(";", ",").split(",") # clean the list in order to avoid empty emails, for instance, comma at the end cleanList = [] for email in auxCCList: if email != "": cleanList.append(email) self._ccList = cleanList self._CAasCCAddr = params.has_key("CAasCCAddr") self._cancel = params.get("cancel", None) self._save = params.get("save", None) self._tplCondition = params.get("condType", None) # If the condition is accepted, get the contribution type id and the track id parameters, otherwise set them by default if self._tplCondition == "accepted": cTypeId = params.get("contribType", "") track = params.get("track", "--any--") else: cTypeId = "" track = "--any--" if cTypeId in ("--none--", "--any--", ""): cType = cTypeId else: cType = self._conf.getContribTypeById(cTypeId) if track not in ["--any--", "--none--"]: track = self._conf.getTrackById(track) self._otherData = {"contribType": cType, "track": track}
def _checkParams( self, params): RHConfModifCFABase._checkParams( self, params) self._title = params.get("title", "") self._description = params.get("description","") self._subject = params.get("subject","") self._body = params.get("body","") self._fromAddr = params.get("fromAddr","") self._toList = self._normaliseListParam(params.get("toAddrs",[])) auxCCList = params.get("CCAddrs","") # replace to have only one separator auxCCList = auxCCList.replace(" ", ",").replace(";", ",").split(",") # clean the list in order to avoid empty emails, for instance, comma at the end cleanList = [] for email in auxCCList: if email != "": cleanList.append(email) self._ccList = cleanList self._CAasCCAddr = params.has_key("CAasCCAddr") self._cancel = params.get("cancel", None) self._save = params.get("save", None) self._tplCondition = params.get("condType", None) # If the condition is accepted, get the contribution type id and the track id parameters, otherwise set them by default if self._tplCondition == "accepted": cTypeId = params.get("contribType", "") track = params.get("track", "--any--") else: cTypeId = "" track = "--any--" if cTypeId in ("--none--", "--any--", ""): cType = cTypeId else: cType = self._conf.getContribTypeById(cTypeId) if track not in ["--any--", "--none--"]: track = self._conf.getTrackById(track) self._otherData = {"contribType":cType, "track":track}
def _checkParams( self, params): RHConfModifCFABase._checkParams( self, params) self._cancel = params.get("cancel", None) self._save = params.get("save", None) if self._save: self._title = params.get("title", "") self._description = params.get("description","") self._subject = params.get("subject","") self._body = params.get("body","") self._fromAddr = params.get("fromAddr","") self._toList = self._normaliseListParam(params.get("toAddrs",[])) auxCCList = params.get("CCAddrs","") # replace to have only one separator auxCCList = auxCCList.replace(" ", ",").replace(";", ",").split(",") # clean the list in order to avoid empty emails, for instance, comma at the end cleanList = [] for email in auxCCList: if email != "": cleanList.append(email) self._ccList = cleanList self._CAasCCAddr = params.has_key("CAasCCAddr")
def _checkParams( self, params): RHConfModifCFABase._checkParams( self, params) l = WebLocator() l.setNotificationTemplate(params) self._notifTpl = self._target = l.getObject()
def _checkParams( self, params): RHConfModifCFABase._checkParams( self, params) self._tplIds = self._normaliseListParam( params.get( "selTpls", [] ) )
def _checkParams(self, params): RHConfModifCFABase._checkParams(self, params) l = WebLocator() l.setNotificationTemplate(params) self._notifTpl = self._target = l.getObject()
def _checkParams(self, params): RHConfModifCFABase._checkParams(self, params) self._tplIds = self._normaliseListParam(params.get("selTpls", []))