From e35dc1a58a4e91977dc9819c80259f09800a0b58 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 18 Aug 2008 04:06:35 +0000 Subject: - Generated application differences: ``make_app`` entry point renamed to ``app`` in order to have a different name than the bfg function of the same name, to prevent confusion. - Add "options" processing to bfg's ``make_app`` to support runtime options. A new API function named ``get_options`` was added to the registry module. This function is typically used in an application's ``app`` entry point. The Paste config file section for the app can now supply the ``reload_templates`` option, which, if true, will prevent the need to restart the appserver in order for ``z3c.pt`` or XSLT template changes to be detected. - Use only the module name in generated project's "test_suite" (run all tests found in the package). - Default port for generated apps changed from 5432 to 6543 (Postgres default port is 6543). --- docs/narr/myproject/myproject.ini | 3 ++- docs/narr/myproject/myproject/configure.zcml | 4 ---- docs/narr/myproject/myproject/run.py | 12 ++++++------ docs/narr/myproject/setup.py | 4 ++-- 4 files changed, 10 insertions(+), 13 deletions(-) (limited to 'docs/narr/myproject') diff --git a/docs/narr/myproject/myproject.ini b/docs/narr/myproject/myproject.ini index 21292d14c..318c2214a 100644 --- a/docs/narr/myproject/myproject.ini +++ b/docs/narr/myproject/myproject.ini @@ -2,7 +2,8 @@ debug = true [app:main] -use = egg:myproject#make_app +use = egg:myproject#app +reload_templates = true [server:main] use = egg:PasteScript#cherrypy diff --git a/docs/narr/myproject/myproject/configure.zcml b/docs/narr/myproject/myproject/configure.zcml index 6cd692784..fdae69cb3 100644 --- a/docs/narr/myproject/myproject/configure.zcml +++ b/docs/narr/myproject/myproject/configure.zcml @@ -5,10 +5,6 @@ - - -