def getCustomBookingXML(cls, booking, displayTz, out): if (booking.canBeStarted()): out.openTag("launchInfo") out.writeTag("launchText", _("Join Now!")) out.writeTag("launchLink", booking.getUrl()) out.writeTag("launchTooltip", _('Click here to join the EVO meeting!')) out.closeTag("launchInfo") if booking.getBookingParamByName("displayPhoneBridgeId"): out.writeTag("firstLineInfo", XMLGenerator.getFirstLineInfo(booking, displayTz)) out.openTag("information") out.openTag("section") out.writeTag("title", _('Title:')) out.writeTag("line", booking._bookingParams["meetingTitle"]) out.closeTag("section") if booking.getHasAccessPassword(): if not booking.getBookingParamByName("displayPassword") and not booking.getBookingParamByName("displayPhonePassword"): out.openTag("section") out.writeTag("title", _('Password:'******'This EVO meeting is protected by a private password.')) out.closeTag("section") else: if booking.getBookingParamByName("displayPassword"): out.openTag("section") out.writeTag("title", _('Password:'******'Phone Bridge Password:'******'Phone bridge numbers:')) out.openTag("linkLine") out.writeTag("href", getEVOOptionValueByName("phoneBridgeNumberList")) out.writeTag("caption", _("List of phone bridge numbers")) out.closeTag("linkLine") out.closeTag("section") if booking.getBookingParamByName("displayURL"): out.openTag("section") out.writeTag("title", _('Auto-join URL:')) out.openTag("linkLine") out.writeTag("href", booking.getUrl()) out.writeTag("caption", booking.getUrl()) out.closeTag("linkLine") out.closeTag("section") out.openTag("section") out.writeTag("title", _('Description:')) out.writeTag("line", booking._bookingParams["meetingDescription"]) out.closeTag("section") out.closeTag("information")
class ReloadCommunityListAction(ActionBase): def call(self): try: answer = getEVOAnswer("reloadCommunityList") except EVOControlledException, e: raise EVOException( 'Error when parsing list of communities. Message from EVO Server: "' + e.message + '".') try: communityStringList = answer.split('&&') communities = {} ignoredCommunities = getEVOOptionValueByName("ingnoredCommunities") for communityString in communityStringList: id, name = communityString.split(',') id = id.strip() name = name.strip() if id not in ignoredCommunities: communities[id] = name self._plugin.getOption("communityList").setValue(communities) except Exception, e: raise EVOException( 'Error when parsing list of communities. Message from EVO Server: "' + answer + '". Exception ocurred: ' + str(e))
def getVars(self): vars = WCSPageTemplateBase.getVars( self ) vars["Booking"] = self._booking vars["ListOfPhoneBridgeNumbersURL"] = getEVOOptionValueByName("phoneBridgeNumberList") return vars
def getInformation(cls, booking, displayTz=None): sections = [] sections.append({"title": _("Title:"), "lines": [booking._bookingParams["meetingTitle"]]}) if booking.getHasAccessPassword(): if not booking.getBookingParamByName("displayPassword") and not booking.getBookingParamByName( "displayPhonePassword" ): sections.append( {"title": _("Password:"******"lines": [_("This EVO meeting is protected by a private password.")]} ) else: if booking.getBookingParamByName("displayPassword"): sections.append({"title": _("Password:"******"lines": [booking.getAccessPassword()]}) if booking.getBookingParamByName("displayPhonePassword"): sections.append({"title": _("Phone Bridge Password:"******"lines": [booking.getPhoneBridgePassword()]}) if booking.getBookingParamByName("displayPhoneBridgeNumbers"): sections.append( { "title": _("Phone bridge numbers:"), "linkLines": [ (_("List of phone bridge numbers"), getEVOOptionValueByName("phoneBridgeNumberList")) ], } ) if booking.getBookingParamByName("displayURL"): sections.append({"title": _("Auto-join URL:"), "linkLines": [(booking.getUrl(), booking.getUrl())]}) sections.append({"title": _("Description:"), "lines": [booking._bookingParams["meetingDescription"]]}) return sections
def getVars(self): variables = WAdvancedTabBase.getVars(self) variables["PhoneBridgeListLink"] = getEVOOptionValueByName( "phoneBridgeNumberList") return variables
def getVars(self): vars = WCSPageTemplateBase.getVars(self) vars["Booking"] = self._booking vars["ListOfPhoneBridgeNumbersURL"] = getEVOOptionValueByName( "phoneBridgeNumberList") return vars
def getInformation(cls, booking, displayTz=None): sections = [] sections.append({ "title": _('Title:'), "lines": [booking._bookingParams["meetingTitle"]] }) if booking.getHasAccessPassword(): if not booking.getBookingParamByName( "displayPassword") and not booking.getBookingParamByName( "displayPhonePassword"): sections.append({ "title": _('Password:'******'This EVO meeting is protected by a private password.' ) ] }) else: if booking.getBookingParamByName("displayPassword"): sections.append({ "title": _('Password:'******'Phone Bridge Password:'******'Phone bridge numbers:'), "linkLines": [(_("List of phone bridge numbers"), getEVOOptionValueByName("phoneBridgeNumberList"))] }) if booking.getBookingParamByName("displayURL"): sections.append({ "title": _('Auto-join URL:'), "linkLines": [(booking.getUrl(), booking.getUrl())] }) sections.append({ "title": _('Description:'), "lines": [booking._bookingParams["meetingDescription"]] }) return sections
def getVars(self): variables = WAdvancedTabBase.getVars(self) variables["PhoneBridgeListLink"] = getEVOOptionValueByName("phoneBridgeNumberList") return variables
def getCustomBookingXML(cls, booking, displayTz, out): if (booking.canBeStarted()): out.openTag("launchInfo") out.writeTag("launchText", _("Join Now!")) out.writeTag("launchLink", booking.getUrl()) out.writeTag("launchTooltip", _('Click here to join the EVO meeting!')) out.closeTag("launchInfo") if booking.getBookingParamByName("displayPhoneBridgeId"): out.writeTag("firstLineInfo", XMLGenerator.getFirstLineInfo(booking, displayTz)) out.openTag("information") out.openTag("section") out.writeTag("title", _('Title:')) out.writeTag("line", booking._bookingParams["meetingTitle"]) out.closeTag("section") if booking.getHasAccessPassword(): if not booking.getBookingParamByName( "displayPassword") and not booking.getBookingParamByName( "displayPhonePassword"): out.openTag("section") out.writeTag("title", _('Password:'******'This EVO meeting is protected by a private password.')) out.closeTag("section") else: if booking.getBookingParamByName("displayPassword"): out.openTag("section") out.writeTag("title", _('Password:'******'Phone Bridge Password:'******'Phone bridge numbers:')) out.openTag("linkLine") out.writeTag("href", getEVOOptionValueByName("phoneBridgeNumberList")) out.writeTag("caption", _("List of phone bridge numbers")) out.closeTag("linkLine") out.closeTag("section") if booking.getBookingParamByName("displayURL"): out.openTag("section") out.writeTag("title", _('Auto-join URL:')) out.openTag("linkLine") out.writeTag("href", booking.getUrl()) out.writeTag("caption", booking.getUrl()) out.closeTag("linkLine") out.closeTag("section") out.openTag("section") out.writeTag("title", _('Description:')) out.writeTag("line", booking._bookingParams["meetingDescription"]) out.closeTag("section") out.closeTag("information")