##// END OF EJS Templates
Merge pull request #1391 from minrk/no_engines...
Merge pull request #1391 from minrk/no_engines Improve Hub/Scheduler when no engines are registered 1. Tasks are pulled into the schedule, rather than left on the ZMQ queue, which means they enter the database. 2. queue_status will not raise NoEngines when there aren't any, instead it will still fetch the available information. Bug fixed in db_query, where behavior did not match docstring (buffers should be excluded if no keys are specified). closes #826 (again)

File last commit:

r2661:595fc3b9
r6104:821fac24 merge
Show More
IPython1SandboxAppDelegate.py
39 lines | 931 B | text/x-python | PythonLexer
#
# IPython1SandboxAppDelegate.py
# IPython1Sandbox
#
# Created by Barry Wark on 3/4/08.
# Copyright __MyCompanyName__ 2008. All rights reserved.
#
from Foundation import NSObject, NSPredicate
import objc
import threading
from PyObjCTools import AppHelper
from twisted.internet import reactor
class IPython1SandboxAppDelegate(NSObject):
ipythonController = objc.IBOutlet()
def applicationShouldTerminate_(self, sender):
if reactor.running:
reactor.addSystemEventTrigger(
'after', 'shutdown', AppHelper.stopEventLoop)
reactor.stop()
return False
return True
def applicationDidFinishLaunching_(self, sender):
reactor.interleave(AppHelper.callAfter)
assert(reactor.running)
def workspaceFilterPredicate(self):
return NSPredicate.predicateWithFormat_("NOT (self.value BEGINSWITH '<')")