Example #1
0
 def run_now(self):
     #time.sleep is here to prevent a timing issue, where checksub is runned before scandisk
     autosubliminal.SCANDISK.runnow = True
     time.sleep(5)
     autosubliminal.CHECKSUB.runnow = True
     useragent = cherrypy.request.headers.get("User-Agent", '')
     tmpl = PageTemplate(file="interface/templates/message.tmpl")
     if utils.check_mobile_device(useragent) and autosubliminal.MOBILEAUTOSUB:
         tmpl = PageTemplate(file="interface/templates/mobile/message.tmpl")
     tmpl.message = "Running everything! <br> <a href='" + autosubliminal.WEBROOT + "/home'>Return</a>"
     return str(tmpl)
Example #2
0
 def run_now(self):
     # Run threads now (use delay to be sure that checksub is run after scandisk)
     autosubliminal.SCANDISK.run()
     autosubliminal.CHECKSUB.run(delay=0.5)
     useragent = cherrypy.request.headers.get("User-Agent", '')
     if autosubliminal.MOBILE and utils.check_mobile_device(useragent):
         tmpl = Template(file="interface/templates/mobile/message.tmpl")
         tmpl.message = "Running everything <br> <a href='" + autosubliminal.WEBROOT + "/home'>Return</a>"
         return str(tmpl)
     else:
         utils.add_notification_message("Running everything...")
         redirect("/home")
Example #3
0
 def run_now(self):
     # Run threads now (use delay to be sure that checksub is run after scandisk)
     autosubliminal.SCANDISK.run()
     autosubliminal.CHECKSUB.run(delay=0.5)
     useragent = cherrypy.request.headers.get("User-Agent", '')
     if autosubliminal.MOBILE and utils.check_mobile_device(useragent):
         tmpl = Template(file="interface/templates/mobile/message.tmpl")
         tmpl.message = "Running everything <br> <a href='" + autosubliminal.WEBROOT + "/home'>Return</a>"
         return str(tmpl)
     else:
         utils.add_notification_message("Running everything...")
         redirect("/home")
Example #4
0
 def index(self):
     useragent = cherrypy.request.headers.get("User-Agent", '')
     tmpl = Template(file="interface/templates/home/home.tmpl")
     if autosubliminal.MOBILE and utils.check_mobile_device(useragent):
         tmpl = Template(file="interface/templates/mobile/home.tmpl")
     return str(tmpl)
Example #5
0
 def index(self):
     useragent = cherrypy.request.headers.get("User-Agent", '')
     tmpl = PageTemplate(file="interface/templates/home.tmpl")
     if utils.check_mobile_device(useragent) and autosubliminal.MOBILEAUTOSUB:
         tmpl = PageTemplate(file="interface/templates/mobile/home.tmpl")
     return str(tmpl)