[Zope3-checkins]
CVS: Zope3/src/zope/app/browser/services/pluggableauth
- configure.zcml:1.8
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Aug 7 14:42:00 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/services/pluggableauth
In directory cvs.zope.org:/tmp/cvs-serv26029/services/pluggableauth
Modified Files:
configure.zcml
Log Message:
Internationalized the rest of zope/app/browser.
I also took the chance to clean up some old code and remove a lot of cruft.
(This is the reason I decided to do it instead of letting a less
experienced developer do it.)
I now consider I18n of the Zope core done. What does this mean to you?
1. All code you check into the CVS must be internationalized. That means:
(a) Python and PT code must be properly tagged.
(b) zope.pot must be updated. This can be done with::
[zope/app/translation_files]$ python extract.py
Note: You do not need to merge the new POT file with the catalogs.
2. Any code snippet that has no I18n is considered a bug! Therefore, please
take care and do the I18n and make code so when you see missing spots.
Finally I would like to mention that some forms might experience some
hickups, as I changed and moved around a lot of templates and was not able
to verify them all by hand. Please let me know, if something that used to
work is not working anymore.
=== Zope3/src/zope/app/browser/services/pluggableauth/configure.zcml 1.7 => 1.8 ===
--- Zope3/src/zope/app/browser/services/pluggableauth/configure.zcml:1.7 Sun Aug 3 13:49:36 2003
+++ Zope3/src/zope/app/browser/services/pluggableauth/configure.zcml Thu Aug 7 13:41:26 2003
@@ -1,92 +1,81 @@
-<configure
- xmlns="http://namespaces.zope.org/browser"
- xmlns:global_translation="http://namespaces.zope.org/gts"
- i18n_domain='zope'
- >
+<configure xmlns="http://namespaces.zope.org/browser">
<!-- Pluggable Authentication Service -->
-<menuItem
- menu="add_service"
- for="zope.app.interfaces.container.IAdding"
- action="zope.app.services.PluggableAuthenticationService"
- title="Authentication Service"
- description="A Pluggable Authentication Service
-
- Uses plug-in principal sources."
- />
-
-<page
- name="contents.html"
- for="zope.app.services.pluggableauth.IPluggableAuthenticationService"
- permission="zope.ManageServices"
- class="zope.app.browser.container.contents.Contents"
- attribute="contents"
- />
-
-<view
- name="+"
- menu="zmi_actions" title="Add Source"
- for="zope.app.services.pluggableauth.IPluggableAuthenticationService"
- permission="zope.ManageContent"
- class="zope.app.browser.services.pluggableauth.PrincipalSourceAdding" >
+ <menuItem
+ menu="add_service"
+ for="zope.app.interfaces.container.IAdding"
+ action="zope.app.services.PluggableAuthenticationService"
+ title="Authentication Service"
+ description="A Pluggable Authentication Service
+
+ Uses plug-in principal sources." />
+
+ <page
+ name="contents.html"
+ for="zope.app.services.pluggableauth.IPluggableAuthenticationService"
+ permission="zope.ManageServices"
+ class="zope.app.browser.container.contents.Contents"
+ attribute="contents" />
+
+ <view
+ name="+"
+ menu="zmi_actions" title="Add Source"
+ for="zope.app.services.pluggableauth.IPluggableAuthenticationService"
+ permission="zope.ManageContent"
+ class="zope.app.browser.services.pluggableauth.PrincipalSourceAdding" >
- <page name="index.html" attribute="index"/>
- <page name="action.html" attribute="action"/>
+ <page name="index.html" attribute="index"/>
+ <page name="action.html" attribute="action"/>
-</view>
+ </view>
-<menu id="add_principal_source"
- title="Menu for adding new PrincipalSource."/>
+ <menu id="add_principal_source"
+ title="Menu for adding new PrincipalSource."/>
<!-- Principal Source -->
-<menuItem
- menu="add_principal_source"
- for="zope.app.interfaces.container.IAdding"
- action="zope.app.principalsources.BTreePrincipalSource"
- title="BTree Principal Source"
- description="BTree Principal Source"
- />
-
-<page
- name="contents.html"
- menu="zmi_views" title="Contents"
- for="zope.app.services.pluggableauth.IContainerPrincipalSource"
- permission="zope.ManageServices"
- class="zope.app.browser.container.contents.Contents"
- attribute="contents"
- />
-
-<view
- name="+"
- for="zope.app.services.pluggableauth.IContainerPrincipalSource"
- permission="zope.ManageContent"
- class="zope.app.browser.container.adding.Adding"/>
-
-<menuItem
- menu="zmi_actions" title="Add Principal"
- for="zope.app.services.pluggableauth.IContainerPrincipalSource"
- action="+/AddPrincipalForm"
- />
-
-<addform
- schema="zope.app.interfaces.services.pluggableauth.IUserSchemafied"
- label="Add Simple User with details"
- content_factory="zope.app.services.pluggableauth.SimplePrincipal"
- arguments="login password title description"
- fields="login password title description"
- name="AddPrincipalForm"
- permission="zope.ManageContent" />
-
-<editform
- schema="zope.app.interfaces.services.pluggableauth.IUserSchemafied"
- label="Edit User Information"
- fields="login password title description"
- name="edit.html"
- menu="zmi_views" title="Edit"
- permission="zope.ManageContent" />
-
-<!-- Principals -->
+ <menuItem
+ menu="add_principal_source"
+ for="zope.app.interfaces.container.IAdding"
+ action="zope.app.principalsources.BTreePrincipalSource"
+ title="BTree Principal Source"
+ description="BTree Principal Source" />
+
+ <page
+ name="contents.html"
+ menu="zmi_views" title="Contents"
+ for="zope.app.services.pluggableauth.IContainerPrincipalSource"
+ permission="zope.ManageServices"
+ class="zope.app.browser.container.contents.Contents"
+ attribute="contents" />
+
+ <view
+ name="+"
+ for="zope.app.services.pluggableauth.IContainerPrincipalSource"
+ permission="zope.ManageContent"
+ class="zope.app.browser.container.adding.Adding" />
+
+ <menuItem
+ menu="zmi_actions" title="Add Principal"
+ for="zope.app.services.pluggableauth.IContainerPrincipalSource"
+ action="+/AddPrincipalForm" />
+
+ <addform
+ schema="zope.app.interfaces.services.pluggableauth.IUserSchemafied"
+ label="Add Simple User with details"
+ content_factory="zope.app.services.pluggableauth.SimplePrincipal"
+ arguments="login password title description"
+ fields="login password title description"
+ name="AddPrincipalForm"
+ permission="zope.ManageContent" />
+
+ <editform
+ schema="zope.app.interfaces.services.pluggableauth.IUserSchemafied"
+ label="Edit User Information"
+ fields="login password title description"
+ name="edit.html"
+ menu="zmi_views" title="Edit"
+ permission="zope.ManageContent" />
</configure>
More information about the Zope3-Checkins
mailing list