[Zope3-checkins]
CVS: Zope3/src/zope/app/browser/services/pluggableauth
- __init__.py:1.6
Jim Fulton
jim at zope.com
Wed Feb 25 08:07:18 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser/services/pluggableauth
In directory cvs.zope.org:/tmp/cvs-serv11393
Modified Files:
__init__.py
Log Message:
Got rid of no-longer needed code.
=== Zope3/src/zope/app/browser/services/pluggableauth/__init__.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/services/pluggableauth/__init__.py:1.5 Sun Sep 21 13:30:53 2003
+++ Zope3/src/zope/app/browser/services/pluggableauth/__init__.py Wed Feb 25 08:07:18 2004
@@ -1,45 +1 @@
-##############################################################################
#
-# Copyright (c) 2003 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Pluggable Authentication Service views.
-
-$Id$
-"""
-
-from zope.app import zapi
-from zope.app.publisher.browser import BrowserView
-from zope.app.browser.container.adding import Adding
-from zope.app.interfaces.services.pluggableauth import IPrincipalSource
-
-class PrincipalSourceAdding(Adding):
- """Adding subclass used for principal sources."""
-
- menu_id = "add_principal_source"
-
- def add(self, content):
-
- if not IPrincipalSource.isImplementedBy(content):
- raise TypeError("%s is not a readable principal source" % content)
-
- return super(PrincipalSourceAdding, self).add(content)
-
-class PrincipalAdd(BrowserView):
-
- def add(self, content):
- name = content.login
- self.context[name] = content
- return self.context[name]
-
- def nextURL(self):
- return "@@contents.html"
-
More information about the Zope3-Checkins
mailing list