[Zope-Checkins] CVS: Zope/lib/python/App/dtml - zope_quick_start.dtml:1.11

Chris McDonough chrism@zope.com
Sat, 26 Jul 2003 17:58:28 -0400


Update of /cvs-repository/Zope/lib/python/App/dtml
In directory cvs.zope.org:/tmp/cvs-serv29718/App/dtml

Modified Files:
	zope_quick_start.dtml 
Log Message:
Provide a newbie-friendly message about adding users at the top of the
quickstart page if the root acl_users contains no users.  Required an
additional default user folder method, hasUsers.


=== Zope/lib/python/App/dtml/zope_quick_start.dtml 1.10 => 1.11 ===
--- Zope/lib/python/App/dtml/zope_quick_start.dtml:1.10	Tue Jun 24 09:30:29 2003
+++ Zope/lib/python/App/dtml/zope_quick_start.dtml	Sat Jul 26 17:58:22 2003
@@ -24,6 +24,27 @@
            form_title='Zope Quick Start',
 	   )">
 
+<dtml-if expr="not PARENTS[0].acl_users.hasUsers()">
+<div class="system-msg">
+<h3>
+You have not created any users in this Zope instance.  In order to
+log in and manage this Zope instance, you'll need to add an adminstrative
+user account.
+</h3>
+<p>
+If you're running Zope on UNIX or Linux, you can create an administrative
+user account via the "zopectl adduser" command from a shell.  If you're
+running Zope on Windows, you'll need to use the "zpasswd.py" utility in your
+Zope installation's "bin" directory
+at <i><dtml-var "Control_Panel.getZOPE_HOME()">\bin</i>
+to create a file named <i>inituser</i> in your Zope instance home at
+<i><dtml-var "Control_Panel.getINSTANCE_HOME()"></i> that contains the
+initial administrative username and password.
+</p>
+</div>
+</dtml-if>
+
+
 <p>
 Welcome to <strong>Zope</strong>, a high-performance object-oriented 
 platform for building dynamic Web applications. Here are some quick