diff --git a/browser/auth.py b/browser/auth.py new file mode 100644 index 0000000..42e96b2 --- /dev/null +++ b/browser/auth.py @@ -0,0 +1,111 @@ +############################################################################## +# +# Copyright (c) 2003 Zope Corporation and Contributors. +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (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. +# +############################################################################## +"""Login and Logout screens + +$Id$ +""" +from zope.interface import implements +from zope.i18n import translate +from zope.app.publisher.interfaces.http import ILogin, ILogout +from zope.app.security.interfaces import IAuthenticationUtility +from zope.app.security.principalregistry import UnauthenticatedPrincipal +from zope.app.pagetemplate import ViewPageTemplateFile +from zope.proxy import removeAllProxies +from zope.app.i18n import ZopeMessageIDFactory as _ + + +search_label = _('search-button', 'Search') + +class AuthUtilitySearchView(object): + __used_for__ = IAuthenticationUtility + + def __init__(self, context, request): + self.context = context + self.request = request + + def render(self, name): + print "" + print "AuthUtilitySearchView render" + html = [] + html.append('