[Checkins] SVN: Sandbox/d2m/grokproject-grokcore.startup/grokproject/template_paste/s add grokcore.startup dependency

Michael Haubenwallner michael at d2m.at
Sun Feb 1 03:57:52 EST 2009


Log message for revision 95814:
  add grokcore.startup dependency

Changed:
  U   Sandbox/d2m/grokproject-grokcore.startup/grokproject/template_paste/setup.py_tmpl
  D   Sandbox/d2m/grokproject-grokcore.startup/grokproject/template_paste/src/+package+/startup.py_tmpl

-=-
Modified: Sandbox/d2m/grokproject-grokcore.startup/grokproject/template_paste/setup.py_tmpl
===================================================================
--- Sandbox/d2m/grokproject-grokcore.startup/grokproject/template_paste/setup.py_tmpl	2009-02-01 08:50:58 UTC (rev 95813)
+++ Sandbox/d2m/grokproject-grokcore.startup/grokproject/template_paste/setup.py_tmpl	2009-02-01 08:57:52 UTC (rev 95814)
@@ -22,13 +22,14 @@
                         'grok',
                         'grokui.admin',
                         'z3c.testsetup',
+                        'grokcore.startup',
                         # Add extra requirements here
                         ],
       entry_points = """
       [console_scripts]
-      ${package}-debug = ${package}.startup:interactive_debug_prompt
-      ${package}-ctl = ${package}.startup:zdaemon_controller
+      ${package}-debug = grokcore.startup.startup:interactive_debug_prompt
+      ${package}-ctl = grokcore.startup.startup:zdaemon_controller
       [paste.app_factory]
-      main = ${package}.startup:application_factory
+      main = grokcore.startup.startup:application_factory
       """,
       )

Deleted: Sandbox/d2m/grokproject-grokcore.startup/grokproject/template_paste/src/+package+/startup.py_tmpl
===================================================================
--- Sandbox/d2m/grokproject-grokcore.startup/grokproject/template_paste/src/+package+/startup.py_tmpl	2009-02-01 08:50:58 UTC (rev 95813)
+++ Sandbox/d2m/grokproject-grokcore.startup/grokproject/template_paste/src/+package+/startup.py_tmpl	2009-02-01 08:57:52 UTC (rev 95814)
@@ -1,35 +0,0 @@
-import os.path
-import sys
-import code
-import zdaemon.zdctl
-import zope.app.wsgi
-import zope.app.debug
-
-def application_factory(global_conf):
-    zope_conf = os.path.join(global_conf['zope_conf'])
-    return zope.app.wsgi.getWSGIApplication(zope_conf)
-
-def interactive_debug_prompt(zope_conf=os.path.join('etc', 'zope.conf')):
-    db = zope.app.wsgi.config(zope_conf)
-    debugger = zope.app.debug.Debugger.fromDatabase(db)
-    # Invoke an interactive interpreter shell
-    banner = ("Welcome to the interactive debug prompt.\n"
-              "The 'root' variable contains the ZODB root folder.\n"
-              "The 'app' variable contains the Debugger, 'app.publish(path)' "
-              "simulates a request.")
-    code.interact(banner=banner, local={'debugger': debugger,
-                                        'app':      debugger,
-                                        'root':     debugger.root()})
-
-class ControllerCommands(zdaemon.zdctl.ZDCmd):
-
-    def do_debug(self, rest):
-        interactive_debug_prompt()
-
-    def help_debug(self):
-        print "debug -- Initialize the application, providing a debugger"
-        print "         object at an interactive Python prompt."
-
-def zdaemon_controller(zdaemon_conf=os.path.join('etc', 'zdaemon.conf')):
-    args = ['-C', zdaemon_conf] + sys.argv[1:]
-    zdaemon.zdctl.main(args, options=None, cmdclass=ControllerCommands)



More information about the Checkins mailing list