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

Jim Fulton jim@zope.com
Mon, 3 Jun 2002 13:16:16 -0400


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

Modified Files:
      Tag: Zope3InWonderland-branch
	sample_principals.zcml 
Log Message:
- Attribute renaming.

  In directives that define things, renamed thing_id to id. For
  example:

    <permission permission_id='xxx' ...

  became:

    <permission id='xxx' ...

  In directives that used things defined in this way, removed the id
  suffix. For example:

     <view permission_id='xxx' ...

  became:

     <view permission='xxx' ...

Note that everyone will need to edit their principals.zcml files to
reflect these changes!


=== Zope3/sample_principals.zcml 1.1.2.1 => 1.1.2.1.26.1 ===
 
 
-<security:defaultPrincipal principal_id="anybody" 
+<security:defaultPrincipal id="anybody" 
                            title="Unauthenticated User" />
 
-<security:principal principal_id="stupid" title="Stupid, replace me"
+<security:principal id="stupid" title="Stupid, replace me"
                     login="stupid" password="123" />
-<security:principal principal_id="idiot" title="I'm an idiot, replace me"
+<security: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" />
+<security:assignRoleToPrincipal role="Manager" principal="stupid" />
+<security:assignRoleToPrincipal role="Member"  principal="idiot" />
 
 </zopeConfigure>