From 8cbb9f2f5a80e502b5aec66a8908e29f4b2545dc 2008-07-01 18:16:06 From: Barry Wark Date: 2008-07-01 18:16:06 Subject: [PATCH] renamed AsynchronousFrontEndBase to AsyncFrontEndBase --- diff --git a/IPython/frontend/cocoa/cocoa_frontend.py b/IPython/frontend/cocoa/cocoa_frontend.py index a713a2e..cbe2a44 100644 --- a/IPython/frontend/cocoa/cocoa_frontend.py +++ b/IPython/frontend/cocoa/cocoa_frontend.py @@ -40,7 +40,7 @@ from pprint import saferepr import IPython from IPython.kernel.engineservice import ThreadedEngineService -from IPython.frontend.frontendbase import AsynchronousFrontEndBase +from IPython.frontend.frontendbase import AsyncFrontEndBase from twisted.internet.threads import blockingCallFromThread from twisted.python.failure import Failure @@ -96,14 +96,14 @@ class AutoreleasePoolWrappedThreadedEngineService(ThreadedEngineService): return d -class IPythonCocoaController(NSObject, AsynchronousFrontEndBase): +class IPythonCocoaController(NSObject, AsyncFrontEndBase): userNS = objc.ivar() #mirror of engine.user_ns (key=>str(value)) waitingForEngine = objc.ivar().bool() textView = objc.IBOutlet() def init(self): self = super(IPythonCocoaController, self).init() - AsynchronousFrontEndBase.__init__(self, + AsyncFrontEndBase.__init__(self, engine=AutoreleasePoolWrappedThreadedEngineService()) if(self != None): self._common_init() diff --git a/IPython/frontend/cocoa/plugin/CocoaFrontendPlugin.xcodeproj/project.pbxproj b/IPython/frontend/cocoa/plugin/CocoaFrontendPlugin.xcodeproj/project.pbxproj index d544d70..525d6ef 100644 --- a/IPython/frontend/cocoa/plugin/CocoaFrontendPlugin.xcodeproj/project.pbxproj +++ b/IPython/frontend/cocoa/plugin/CocoaFrontendPlugin.xcodeproj/project.pbxproj @@ -11,7 +11,7 @@ isa = PBXContainerItemProxy; containerPortal = 4C96F4FE0E199AB500B03430 /* Project object */; proxyType = 1; - remoteGlobalIDString = 4C96F50C0E199AF100B03430 /* Cocoa Frontend Plugin */; + remoteGlobalIDString = 4C96F50C0E199AF100B03430; remoteInfo = "Cocoa Frontend Plugin"; }; /* End PBXContainerItemProxy section */ diff --git a/IPython/frontend/frontendbase.py b/IPython/frontend/frontendbase.py index bdc5495..e9c8fbb 100644 --- a/IPython/frontend/frontendbase.py +++ b/IPython/frontend/frontendbase.py @@ -355,7 +355,7 @@ class FrontEndBase(object): -class AsynchronousFrontEndBase(FrontEndBase): +class AsyncFrontEndBase(FrontEndBase): """ Overrides FrontEndBase to wrap execute in a deferred result. All callbacks are made as callbacks on the deferred result. diff --git a/IPython/frontend/tests/test_frontendbase.py b/IPython/frontend/tests/test_frontendbase.py index 1498036..f74c43e 100644 --- a/IPython/frontend/tests/test_frontendbase.py +++ b/IPython/frontend/tests/test_frontendbase.py @@ -19,7 +19,7 @@ import unittest from IPython.frontend import frontendbase from IPython.kernel.engineservice import EngineService -class FrontEndCallbackChecker(frontendbase.AsynchronousFrontEndBase): +class FrontEndCallbackChecker(frontendbase.AsyncFrontEndBase): """FrontEndBase subclass for checking callbacks""" def __init__(self, engine=None, history=None): super(FrontEndCallbackChecker, self).__init__(engine=engine, @@ -44,7 +44,7 @@ class FrontEndCallbackChecker(frontendbase.AsynchronousFrontEndBase): -class TestAsynchronousFrontendBase(unittest.TestCase): +class TestAsyncFrontendBase(unittest.TestCase): def setUp(self): """Setup the EngineService and FrontEndBase""" @@ -53,7 +53,7 @@ class TestAsynchronousFrontendBase(unittest.TestCase): def test_implements_IFrontEnd(self): assert(frontendbase.IFrontEnd.implementedBy( - frontendbase.AsynchronousFrontEndBase)) + frontendbase.AsyncFrontEndBase)) def test_is_complete_returns_False_for_incomplete_block(self):