[Checkins] SVN: grokproject/branches/d2m-dual-startup/ corrected executable name, added info to CHANGES.txt and README.txt

Michael Haubenwallner michael at d2m.at
Fri Sep 26 11:58:55 EDT 2008


Log message for revision 91532:
  corrected executable name, added info to CHANGES.txt and README.txt

Changed:
  U   grokproject/branches/d2m-dual-startup/CHANGES.txt
  U   grokproject/branches/d2m-dual-startup/README.txt
  U   grokproject/branches/d2m-dual-startup/grokproject/templates.py

-=-
Modified: grokproject/branches/d2m-dual-startup/CHANGES.txt
===================================================================
--- grokproject/branches/d2m-dual-startup/CHANGES.txt	2008-09-26 15:55:26 UTC (rev 91531)
+++ grokproject/branches/d2m-dual-startup/CHANGES.txt	2008-09-26 15:58:54 UTC (rev 91532)
@@ -4,9 +4,9 @@
 branch
 ------
 
-* added another template to support paste (template_paste)
-* paste is the default server mode now
-* grokproject --server=zopectl ... creates a grokproject like before
+* added another template to support paster (template_paste)
+* paster is the default server mode now
+* grokproject --zopectl=True ... creates a grokproject like before
 * with bin/paster serve etc/debug.ini 
   you need to access the project from http://localhost:8080/@@login.html
   

Modified: grokproject/branches/d2m-dual-startup/README.txt
===================================================================
--- grokproject/branches/d2m-dual-startup/README.txt	2008-09-26 15:55:26 UTC (rev 91531)
+++ grokproject/branches/d2m-dual-startup/README.txt	2008-09-26 15:58:54 UTC (rev 91532)
@@ -17,8 +17,13 @@
 After the project area has been created successfully, you will find an
 empty Python package in the ``src`` directory in which you can place
 the code for your web application.  To start the Zope server, execute
-``bin/zopectl fg``.
+``bin/paster serve etc/deploy.ini``.
 
+To create a project with the old ``zopectl`` layout run the ``grokproject`` 
+script like:
+
+  $ grokproject --zopectl=True MammothHerd
+
 For those who know paster: ``grokproject`` is just a wrapper around a
 paster template.  So instead of running the ``grokproject`` command,
 you can also run:

Modified: grokproject/branches/d2m-dual-startup/grokproject/templates.py
===================================================================
--- grokproject/branches/d2m-dual-startup/grokproject/templates.py	2008-09-26 15:55:26 UTC (rev 91531)
+++ grokproject/branches/d2m-dual-startup/grokproject/templates.py	2008-09-26 15:58:54 UTC (rev 91532)
@@ -35,9 +35,10 @@
         ask_var('eggs_dir',
                 'Location where zc.buildout will look for and place packages',
                 default='', should_ask=False),
-        ask_var('server',
-                "Use 'paste' (default) or 'zopectl'?",
-                default='paste'),
+        ask_var('zopectl',
+                "Use zopectl",
+                default=False, should_ask=False,
+                getter=get_boolean_value_for_option),
         ]
 
     def check_vars(self, vars, cmd):
@@ -49,7 +50,7 @@
             sys.exit(1)
 
         explicit_eggs_dir = vars.get('eggs_dir')
-
+        
         skipped_vars = {}
         for var in list(self.vars):
             if not var.should_ask:
@@ -65,9 +66,9 @@
             vars[var_name] = xml.sax.saxutils.quoteattr(vars[var_name])
         vars['app_class_name'] = vars['project'].capitalize()
 
-        if str(vars.get('server')).lower() == 'zopectl':
+        if vars['zopectl']:
             self._template_dir = 'template'
-
+        
         # Handling the version.cfg file.
         print "Downloading info about versions..."
         current_info_url = GROK_RELEASE_URL + 'current'



More information about the Checkins mailing list