[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/container - __init__.py:1.10.18.1

Zachery Bir zbir@urbanape.com
Tue, 3 Jun 2003 09:34:36 -0400


Update of /cvs-repository/Zope3/src/zope/app/interfaces/container
In directory cvs.zope.org:/tmp/cvs-serv21295/src/zope/app/interfaces/container

Modified Files:
      Tag: pluggable_authentication_service-branch
	__init__.py 
Log Message:
In directory src/zope/app/browser/services/pluggableauth:

  - src/zope/app/browser/services/pluggableauth/__init__.py

    Adding override for the PluggableAuthenticationService

  - src/zope/app/browser/services/pluggableauth/configure.zcml

    Configuration for the views for PluggableAuthenticationService, 
    BTreePrincipalSource, and SimplePrincipal

    XXX: TODO: - contents.html view for PluggableAuthenticationService
                 and BTreePrincipalSource

               - get BTreePrincipalSource to actually have additional 
                 zmi_views to be more like a container, for example, it 
                 currently does not have a "Contents" tab

               - views for the login challenge

In directory src/zope/app/container:

  - src/zope/app/container/ordered.py

    Implementation of an OrderedContainer

In directory src/zope/app/container/tests:

  - src/zope/app/container/tests/test_ordered.py

    Test module for OrderedContainer (all tests currently in docstrings)

In directory src/zope/app/interfaces/container:

  - src/zope/app/interfaces/container/__init__.py

    Added interface for OrderedContainer

In directory src/zope/app/interfaces/services/pluggableauth:

  - src/zope/app/interfaces/services/pluggableauth/__init__.py

    Interfaces for PluggableAuthenticationService, Read/WritePrincipalSource,
    and UserSchemafied

In directory src/zope/app/services:

  - src/zope/app/services/configure.zcml

    Included the pluggableauth package

In directory src/zope/app/services/pluggableauth:

  - src/zope/app/services/pluggableauth/__init__.py

    Implementation of the PluggableAuthenticationService, BTreePrincipalSource,
    and SimplePrincipal classes

    XXX: TODO: - Wrap all returned items from getPrincipals() in both
                 PluggableAuthenticationService and BTreePrincipalSource
                 so that the ids being handed up are tuplified (in the case
                 of BTreePrincipalSource) and triplified (in the case of
                 PluggableAuthenticationService) to ensure proper uniquity

  - src/zope/app/services/pluggableauth/configure.zcml

    Content directives for the above

In directory src/zope/app/services/tests:

  - src/zope/app/services/tests/test_pluggableauth.py

    Test module for PluggableAuthenticationService, BTreePrincipalSource, and
    SimplePrincipal classes (all available tests currently in docstrings)

    XXX: TODO: - write unit tests for the ContextMethods to ensure proper
                 delegation of Authentication responsibility (perhaps 
                 functional tests, instead?)


=== Zope3/src/zope/app/interfaces/container/__init__.py 1.10 => 1.10.18.1 ===
--- Zope3/src/zope/app/interfaces/container/__init__.py:1.10	Mon Mar 31 09:48:41 2003
+++ Zope3/src/zope/app/interfaces/container/__init__.py	Tue Jun  3 09:34:05 2003
@@ -88,6 +88,16 @@
 class IContainer(IReadContainer, IWriteContainer):
     """Readable and writable content container."""
 
+class IOrderedContainer(IContainer):
+    """Containers whose contents are maintained in order
+    """
+
+    def updateOrder(order):
+        """Revise the order of keys, replacing the current ordering
+
+        Raise something(XXX) if the set of keys passed in is not complete.
+        """
+
 class IOptionalNamesContainer(IContainer):
     """Containers that will choose names for their items if no names are given
     """