[Checkins] SVN: Sandbox/philikon/zopeproject/trunk/zopeproject/zope_app/ Renamed the 'debug' function to be more explicit about what it does.

Philipp von Weitershausen philikon at philikon.de
Fri Sep 14 13:30:19 EDT 2007


Log message for revision 79650:
  Renamed the 'debug' function to be more explicit about what it does.
  
  We can't name the script bin/debug because two zopeproject-based apps that
  are installed at the same time would collide.  Use bin/debug-<package>.
  

Changed:
  U   Sandbox/philikon/zopeproject/trunk/zopeproject/zope_app/+package+/application.py
  U   Sandbox/philikon/zopeproject/trunk/zopeproject/zope_app/setup.py_tmpl

-=-
Modified: Sandbox/philikon/zopeproject/trunk/zopeproject/zope_app/+package+/application.py
===================================================================
--- Sandbox/philikon/zopeproject/trunk/zopeproject/zope_app/+package+/application.py	2007-09-14 17:26:19 UTC (rev 79649)
+++ Sandbox/philikon/zopeproject/trunk/zopeproject/zope_app/+package+/application.py	2007-09-14 17:30:19 UTC (rev 79650)
@@ -7,7 +7,7 @@
     zope_conf = os.path.join(global_conf['here'], conf)
     return zope.app.wsgi.getWSGIApplication(zope_conf)
 
-def debug(zope_conf='zope.conf'):
+def interactive_debug_prompt(zope_conf='zope.conf'):
     db = zope.app.wsgi.config(zope_conf)
     debugger = zope.app.debug.Debugger.fromDatabase(db)
     # Invoke an interactive interpreter shell

Modified: Sandbox/philikon/zopeproject/trunk/zopeproject/zope_app/setup.py_tmpl
===================================================================
--- Sandbox/philikon/zopeproject/trunk/zopeproject/zope_app/setup.py_tmpl	2007-09-14 17:26:19 UTC (rev 79649)
+++ Sandbox/philikon/zopeproject/trunk/zopeproject/zope_app/setup.py_tmpl	2007-09-14 17:30:19 UTC (rev 79650)
@@ -39,7 +39,7 @@
                         ],
       entry_points = """
       [console_scripts]
-      debug = ${package}.application:debug
+      debug-${package} = ${package}.application:interactive_debug_prompt
       [paste.app_factory]
       main = ${package}.application:application_factory
       """



More information about the Checkins mailing list