[Checkins] SVN: grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/ late import

Christian Klinger cvs-admin at zope.org
Fri Apr 27 09:15:19 UTC 2012


Log message for revision 125320:
  late import

Changed:
  U   grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/__init__.py
  U   grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/debug.py

-=-
Modified: grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/__init__.py
===================================================================
--- grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/__init__.py	2012-04-27 08:45:43 UTC (rev 125319)
+++ grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/__init__.py	2012-04-27 09:15:15 UTC (rev 125320)
@@ -15,8 +15,10 @@
 from grokcore.startup.startup import (application_factory,
                                       debug_application_factory)
 
-try:
-    import IPython
-    from grokcore.startup.debug import interactive_debug_prompt
-except ImportError:
-    from grokcore.startup.startup import interactive_debug_prompt
+def getDebugger(zope_conf):
+    try:
+        import IPython
+        from grokcore.startup.debug import interactive_debug_prompt
+    except ImportError:
+        from grokcore.startup.startup import interactive_debug_prompt
+    return interactive_debug_prompt(zope_conf)

Modified: grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/debug.py
===================================================================
--- grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/debug.py	2012-04-27 08:45:43 UTC (rev 125319)
+++ grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/debug.py	2012-04-27 09:15:15 UTC (rev 125320)
@@ -36,7 +36,6 @@
         self.app = debugger
         self.root = debugger.root()
         self.context = self.root
-        print "CALL"
 
     def get_start_context(self, path):
         if path.startswith(PATH_SEP):



More information about the checkins mailing list