コード例 #1
0
ファイル: sabtray.py プロジェクト: Adrellias/sabnzbd
 def defhost(self, icon):
     sabnzbd.cfg.cherryhost.set('127.0.0.1')
     sabnzbd.cfg.enable_https.set(False)
     sabnzbd.config.save_config()
     self.hover_text = T('Restart')
     sabnzbd.halt()
     cherrypy.engine.restart()
コード例 #2
0
ファイル: sabtray.py プロジェクト: koenpunt/sabnzbd
 def nologin(self, icon):
     sabnzbd.cfg.username.set('')
     sabnzbd.cfg.password.set('')
     sabnzbd.config.save_config()
     self.hover_text = T('Restart')
     sabnzbd.halt()
     cherrypy.engine.restart()
コード例 #3
0
ファイル: sabtray.py プロジェクト: koenpunt/sabnzbd
 def defhost(self, icon):
     sabnzbd.cfg.cherryhost.set('127.0.0.1')
     sabnzbd.cfg.enable_https.set(False)
     sabnzbd.config.save_config()
     self.hover_text = T('Restart')
     sabnzbd.halt()
     cherrypy.engine.restart()
コード例 #4
0
ファイル: wizard.py プロジェクト: theweirdone/sabnzbd
 def exit(self, **kwargs):
     """ Stop SABnzbd """
     yield "Initiating shutdown..."
     sabnzbd.halt()
     yield "<br>SABnzbd-%s shutdown finished" % sabnzbd.__version__
     cherrypy.engine.exit()
     sabnzbd.SABSTOP = True
コード例 #5
0
ファイル: sabtray.py プロジェクト: Adrellias/sabnzbd
 def nologin(self, icon):
     sabnzbd.cfg.username.set('')
     sabnzbd.cfg.password.set('')
     sabnzbd.config.save_config()
     self.hover_text = T('Restart')
     sabnzbd.halt()
     cherrypy.engine.restart()
コード例 #6
0
ファイル: wizard.py プロジェクト: Adrellias/sabnzbd
 def exit(self, **kwargs):
     """ Stop SABnzbd """
     yield "Initiating shutdown..."
     sabnzbd.halt()
     yield "<br>SABnzbd-%s shutdown finished" % sabnzbd.__version__
     cherrypy.engine.exit()
     sabnzbd.SABSTOP = True
コード例 #7
0
 def restartNoLogin_(self, sender):
     sabnzbd.cfg.username.set('')
     sabnzbd.cfg.password.set('')
     sabnzbd.config.save_config()
     self.setMenuTitle("\n\n%s\n" % (T('Stopping...')))
     sabnzbd.halt()
     cherrypy.engine.restart()
     self.setMenuTitle("\n\n%s\n" % (T('Stopping...')))
コード例 #8
0
ファイル: osxmenu.py プロジェクト: BigMarlin1/sabnzbd
 def restartNoLogin_(self, sender):
     sabnzbd.cfg.username.set('')
     sabnzbd.cfg.password.set('')
     sabnzbd.config.save_config()
     self.setMenuTitle("\n\n%s\n"% (T('Stopping...')))
     sabnzbd.halt()
     cherrypy.engine.restart()
     self.setMenuTitle("\n\n%s\n"% (T('Stopping...')))
コード例 #9
0
ファイル: osxmenu.py プロジェクト: BigMarlin1/sabnzbd
 def restartSafeHost_(self, sender):
     sabnzbd.cfg.cherryhost.set('127.0.0.1')
     sabnzbd.cfg.cherryport.set('8080')
     sabnzbd.cfg.https_port.set('8090')
     sabnzbd.cfg.enable_https.set(False)
     sabnzbd.config.save_config()
     self.setMenuTitle("\n\n%s\n"% (T('Stopping...')))
     sabnzbd.halt()
     cherrypy.engine.restart()
     self.setMenuTitle("\n\n%s\n"% (T('Stopping...')))
コード例 #10
0
 def restartSafeHost_(self, sender):
     sabnzbd.cfg.cherryhost.set('127.0.0.1')
     sabnzbd.cfg.cherryport.set('8080')
     sabnzbd.cfg.https_port.set('8090')
     sabnzbd.cfg.enable_https.set(False)
     sabnzbd.config.save_config()
     self.setMenuTitle("\n\n%s\n" % (T('Stopping...')))
     sabnzbd.halt()
     cherrypy.engine.restart()
     self.setMenuTitle("\n\n%s\n" % (T('Stopping...')))
コード例 #11
0
ファイル: wizard.py プロジェクト: mattias197711/sabnzbd
    def exit(self, **kwargs):
        """ Stop SABnzbd """
        if cfg.configlock() or not sabnzbd.interface.check_access():
            return sabnzbd.interface.Protected()
        if not sabnzbd.interface.check_login():
            raise sabnzbd.interface.NeedLogin()

        logging.info('Shutdown requested by wizard')
        sabnzbd.halt()
        cherrypy.engine.exit()
        sabnzbd.SABSTOP = True
        return T('SABnzbd shutdown finished')
コード例 #12
0
ファイル: osxmenu.py プロジェクト: 12345z/sabnzbd
 def applicationShouldTerminate_(self, sender):
     logging.info('[osx] application terminating')
     self.setMenuTitle("\n\n%s\n"% (T('Stopping...')))
     self.status_item.setHighlightMode_(NO)
     sabnzbd.OSX_ICON = 0
     logging.info('[osx] application stopping daemon')
     sabnzbd.halt()
     cherrypy.engine.exit()
     sabnzbd.SABSTOP = True
     osx.sendGrowlMsg('SABnzbd',T('SABnzbd shutdown finished'),osx.NOTIFICATION['other'])
     logging.info('Leaving SABnzbd')
     sys.stderr.flush()
     sys.stdout.flush()
     return NSTerminateNow
コード例 #13
0
ファイル: osxmenu.py プロジェクト: claytonbrown/sabnzbd
 def applicationShouldTerminate_(self, sender):
     logging.info('[osx] application terminating')
     self.setMenuTitle("\n\n%s\n" % (T('Stopping...')))
     self.status_item.setHighlightMode_(NO)
     sabnzbd.OSX_ICON = 0
     logging.info('[osx] application stopping daemon')
     sabnzbd.halt()
     cherrypy.engine.exit()
     sabnzbd.SABSTOP = True
     osx.sendGrowlMsg('SABnzbd', T('SABnzbd shutdown finished'),
                      osx.NOTIFICATION['other'])
     logging.info('Leaving SABnzbd')
     sys.stderr.flush()
     sys.stdout.flush()
     return NSTerminateNow
コード例 #14
0
 def applicationShouldTerminate_(self, sender):
     logging.info('[osx] application terminating')
     self.setMenuTitle("\n\n%s\n"% (T('Stopping...')))
     self.status_item.setHighlightMode_(NO)
     self.osx_icon = False
     logging.info('[osx] application stopping daemon')
     sabnzbd.halt()
     cherrypy.engine.exit()
     sabnzbd.SABSTOP = True
     try:
         growler.send_notification('SABnzbd', T('SABnzbd shutdown finished'), growler.NOTIFICATION['other'])
     except AttributeError:
         # Fails for the OSX binary
         pass
     logging.info('Leaving SABnzbd')
     sys.stderr.flush()
     sys.stdout.flush()
     return NSTerminateNow
コード例 #15
0
ファイル: osxmenu.py プロジェクト: BigMarlin1/sabnzbd
 def applicationShouldTerminate_(self, sender):
     logging.info('[osx] application terminating')
     self.setMenuTitle("\n\n%s\n"% (T('Stopping...')))
     self.status_item.setHighlightMode_(NO)
     self.osx_icon = False
     logging.info('[osx] application stopping daemon')
     sabnzbd.halt()
     cherrypy.engine.exit()
     sabnzbd.SABSTOP = True
     try:
         growler.send_notification('SABnzbd', T('SABnzbd shutdown finished'), growler.NOTIFICATION['other'])
     except AttributeError:
         # Fails for the OSX binary
         pass
     logging.info('Leaving SABnzbd')
     sys.stderr.flush()
     sys.stdout.flush()
     return NSTerminateNow
コード例 #16
0
ファイル: sabtraylinux.py プロジェクト: labrys/sabnzbd
 def restart(self, icon):
     self.hover_text = T('Restart')
     sabnzbd.halt()
     cherrypy.engine.restart()
コード例 #17
0
ファイル: sabtray.py プロジェクト: koenpunt/sabnzbd
 def restart(self, icon):
     self.hover_text = T('Restart')
     sabnzbd.halt()
     cherrypy.engine.restart()
コード例 #18
0
ファイル: osxmenu.py プロジェクト: claytonbrown/sabnzbd
 def restartAction_(self, sender):
     self.setMenuTitle("\n\n%s\n" % (T('Stopping...')))
     sabnzbd.halt()
     cherrypy.engine.restart()
     self.setMenuTitle("\n\n%s\n" % (T('Stopping...')))
コード例 #19
0
ファイル: osxmenu.py プロジェクト: 12345z/sabnzbd
 def restartAction_(self, sender):
     self.setMenuTitle("\n\n%s\n"% (T('Stopping...')))
     sabnzbd.halt()
     cherrypy.engine.restart()
     self.setMenuTitle("\n\n%s\n"% (T('Stopping...')))
コード例 #20
0
 def restart(self, icon):
     self.hover_text = self.txt_restart
     sabnzbd.halt()
     cherrypy.engine.restart()
コード例 #21
0
ファイル: sabtray.py プロジェクト: FiddleCastro/sabnzbd
 def restart(self, icon):
     self.hover_text = self.txt_restart
     sabnzbd.halt()
     cherrypy.engine.restart()
コード例 #22
0
ファイル: sabtray.py プロジェクト: Hellowlol/sabnzbd
 def shutdown(self, icon):
     self.hover_text = self.txt_shutdown
     logging.info('Shutdown requested by tray')
     sabnzbd.halt()
     cherrypy.engine.exit()
     sabnzbd.SABSTOP = True
コード例 #23
0
ファイル: sabtraylinux.py プロジェクト: labrys/sabnzbd
 def shutdown(self, icon):
     self.hover_text = T('Shutdown')
     sabnzbd.halt()
     cherrypy.engine.exit()
     sabnzbd.SABSTOP = True
コード例 #24
0
ファイル: sabtray.py プロジェクト: koenpunt/sabnzbd
 def shutdown(self, icon):
     self.hover_text = T('Shutdown')
     sabnzbd.halt()
     cherrypy.engine.exit()
     sabnzbd.SABSTOP = True
コード例 #25
0
ファイル: sabtray.py プロジェクト: lsda123456/sabnzbd
 def shutdown(self, icon):
     self.hover_text = self.txt_shutdown
     logging.info('Shutdown requested by tray')
     sabnzbd.halt()
     cherrypy.engine.exit()
     sabnzbd.SABSTOP = True