[Zope-Checkins] CVS: Zope3 - sample_principals.zcml:1.1.2.1

Jim Fulton jim@zope.com
Fri, 1 Feb 2002 15:13:05 -0500


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv8509

Added Files:
      Tag: Zope-3x-branch
	sample_principals.zcml 
Log Message:
Provides a stupid sample principals file so people can see 
how to set up their principals. Maybe someone will write a tool
that automates that.


=== Added File Zope3/sample_principals.zcml ===
<!--# Use this as an example for setting up your principals file.
      Don't simply copy this file to principals.zcml unless you
      absolutely know it will only be used for development.
   -->
<zopeConfigure
   xmlns='http://namespaces.zope.org/zope'
   xmlns:security='http://namespaces.zope.org/security'
   xmlns:zmi='http://namespaces.zope.org/zmi'
   xmlns:browser='http://namespaces.zope.org/browser'
>


<security:defaultPrincipal principal_id="anybody" 
                           title="Unauthenticated User" />

<security:principal principal_id="stupid" title="Stupid, replace me"
                    login="stupid" password="123" />
<security:principal principal_id="idiot" title="I'm an idiot, replace me"
                    login="idiot" password="456" />

<security:assignRoleToPrincipal role_id="Manager" principal_id="stupid" />
<security:assignRoleToPrincipal role_id="Member"  principal_id="idiot" />

</zopeConfigure>