Ejemplo n.º 1
0
 def invoke(cls, **kwargs):
     from gui.shared.event_dispatcher import showReferralProgramWindow
     from gui.Scaleform.daapi.view.lobby.referral_program.referral_program_helpers import getReferralProgramURL
     value = kwargs.get('value', None)
     url = value.get('action_url', None) if isinstance(value, dict) else None
     url = getReferralProgramURL() + url
     showReferralProgramWindow(url)
     return
def showGetVehiclePage(vehicle, params=None):
    if vehicle.isInInventory and not vehicle.isRented:
        showInventoryMsg('already_exists',
                         vehicle,
                         msgType=SystemMessages.SM_TYPE.Warning)
        event_dispatcher.selectVehicleInHangar(vehicle.intCD)
        return
    url = helpers.getObtainVehicleURL()
    if url:
        url = yield URLMacros().parse(url, params=params)
        showReferralProgramWindow(url)
 def handleOkButton(self):
     showReferralProgramWindow()
Ejemplo n.º 4
0
 def show(self, _):
     url = getReferralProgramURL() + self.__relativeUrl
     showReferralProgramWindow(url)
 def __getReturnCallback(self, backUrl):
     return (lambda: showReferralProgramWindow(backUrl)
             ) if backUrl is not None else None