def SetupEveSpecificLogging():
    log.AddGlobalChannels(globalChannelsList)
    log.SetMsgWindowStreamToMsgWindowfunc(EveMsgWindowStreamToMsgWindow)
    log.SetStackFileNameSubPaths(
        ('/server/', '/client/', '/proxy/', '/common/'))
    log.RegisterPostStackTraceAll(evePostStacktraceCallback)
    log.SetUiMessageFunc(EveUIMessage)
Ejemplo n.º 2
0
 def __init__(self):
     import __builtin__
     if 'uicore' in __builtin__.__dict__.keys():
         pass
     else:
         self.newRendererEnabled = False
         self.fontSizeFactor = 1.0
         self._lastCursor = None
         self._cursorSprite = None
         self._hint = None
         self.isRunning = False
         self.desktop = None
         self.dragData = None
         self.dragObject = None
         self.triappargs = {
             'title': boot.appname,
             'left': 0,
             'top': 0,
             'colordepth': 0,
             'exclusiveInput': 0,
             'refreshrate': 0
         }
         __builtin__.uicore = self
     blue.pyos.exceptionHandler = self._ExceptionHandler
     log.SetUiMessageFunc(self.Message)
     self.textObjects = weakref.WeakSet()
     self.deviceResource = UIDeviceResource()
Ejemplo n.º 3
0
    def StartupUI(self, *args):
        self.usingSingleSignOn = False
        uicore.Startup(self.uiLayerList)
        uicore.Message = eve.Message
        uiutil.AskName = uiutil.NamePopup
        log.SetUiMessageFunc(uicore.Message)
        if blue.win32.IsTransgaming():
            sm.StartService('cider')
        self.SetupViewStates()
        sm.GetService('device').SetupUIScaling()
        sceneManager = sm.StartService('sceneManager')
        sceneManager.SetSceneType(SCENE_TYPE_SPACE)
        sceneManager.Initialize(trinity.EveSpaceScene())
        sm.StartService('connection')
        sm.StartService('damage')
        sm.StartService('logger')
        sm.StartService('vivox')
        sm.StartService('ownerprimer')
        sm.StartService('petition')
        sm.StartService('ui')
        sm.StartService('window')
        sm.StartService('log')
        sm.StartService('z')
        sm.StartService('consider')
        sm.StartService('incursion')
        sm.StartService('cameraClient')
        sm.StartService('moonScan')
        sm.StartService('preview')
        sm.StartService('crimewatchSvc')
        if blue.win32:
            try:
                blue.win32.WTSRegisterSessionNotification(
                    trinity.device.GetWindow(), 0)
                uicore.uilib.SessionChangeHandler = self.OnWindowsUserSessionChange
            except:
                sys.exc_clear()
                uicore.uilib.SessionChangeHandler = None

        sm.GetService('launcher').SetClientBootProgress(60)
        token = None
        for arg in blue.pyos.GetArg()[1:]:
            if arg.startswith('/ssoToken'):
                try:
                    argName, token = arg.split('=')
                except:
                    raise RuntimeError(
                        'Invalid format of SSO token, should be /ssoToken=<token>'
                    )

        pr = sm.GetService('webtools').GetVars()
        if pr:
            sm.GetService('webtools').GoSlimLogin()
        elif token is not None:
            self.usingSingleSignOn = True
            self.DoLogin(token)
        else:
            sm.GetService('viewState').ActivateView('login')
Ejemplo n.º 4
0
    def StartupUI(self, *args):
        self.usingSingleSignOn = False
        uicore.SetFontHandler(EveFontHandler())
        uicore.SetAudioHandler(sm.StartService('audio'))
        uicore.Startup(self.uiLayerList)
        uicore.SetCommandHandler(sm.StartService('cmd'))
        import eve.client.script.ui.control.tooltips as tooltipHandler
        uicore.SetTooltipHandler(tooltipHandler)
        uicore.Message = eve.Message
        uiutil.AskName = uiutil.NamePopup
        log.SetUiMessageFunc(uicore.Message)
        if blue.win32.IsTransgaming():
            sm.StartService('cider')
        SetupViewStates(self.viewState, uicore.layer.viewstate)
        sm.GetService('device').SetupUIScaling()
        sceneManager = sm.StartService('sceneManager')
        sceneManager.SetSceneType(SCENE_TYPE_SPACE)
        sceneManager.Initialize(trinity.EveSpaceScene())
        self.RegisterBlueResources()
        sm.StartService('connection')
        sm.StartService('logger')
        sm.StartService('vivox')
        sm.StartService('ownerprimer')
        sm.StartService('petition')
        sm.StartService('ui')
        sm.StartService('window')
        sm.StartService('log')
        sm.StartService('consider')
        sm.StartService('incursion')
        sm.StartService('cameraClient')
        sm.StartService('moonScan')
        sm.StartService('preview')
        sm.StartService('crimewatchSvc')
        sm.StartService('flightPredictionSvc')
        sm.StartService('flightControls')
        sm.StartService('sensorSuite')
        sm.StartService('hackingUI')
        sm.StartService('radialmenu')
        sm.StartService('tourneyBanUI')
        sm.StartService('achievementSvc')
        uicore.megaMenuManager = MegaMenuManager()
        if blue.win32:
            try:
                blue.win32.WTSRegisterSessionNotification(
                    trinity.device.GetWindow(), 0)
                uicore.uilib.SessionChangeHandler = self.OnWindowsUserSessionChange
            except:
                sys.exc_clear()
                uicore.uilib.SessionChangeHandler = None

        sm.GetService('launcher').SetClientBootProgress(60)
        token = None
        for arg in blue.pyos.GetArg()[1:]:
            if arg.startswith('/ssoToken'):
                try:
                    argName, token = arg.split('=')
                except:
                    raise RuntimeError(
                        'Invalid format of SSO token, should be /ssoToken=<token>'
                    )

        pr = sm.GetService('webtools').GetVars()
        if pr:
            sm.GetService('webtools').GoSlimLogin()
        elif token is not None:
            self.usingSingleSignOn = True
            self.DoLogin(token)
        else:
            self.viewState.ActivateView('login')
Ejemplo n.º 5
0
                                     sess.shipid, sess.locationid,
                                     util.FmtDate(sess.lastRemoteCall, 'll'),
                                     sess.address.split(':')[0]))
                except:
                    out.write('!error writing out session %s\n' % str(sess))
                    log.LogException()

            out.write(
                '------------------------------------------------------------------------------------------------------\n'
            )
            out.write('%s sessions total.\n' % len(sessions))
        else:
            out.write('There were no active client sessions.\n')
    except:
        log.LogException()


def EveMsgWindowStreamToMsgWindow():
    return prefs.GetValue('showExceptions', 0)


def EveUIMessage(*args):
    eve.Message(*args)


log.AddGlobalChannels(globalChannelsList)
log.SetMsgWindowStreamToMsgWindowfunc(EveMsgWindowStreamToMsgWindow)
log.SetStackFileNameSubPaths(('/server/', '/client/', '/proxy/', '/common/'))
log.RegisterPostStackTraceAll(evePostStacktraceCallback)
log.SetUiMessageFunc(EveUIMessage)