[Zope3-checkins] SVN: ldapauth/trunk/ Fixed eol and a wrong date in the copyright notice.

Nicolas Évrard nicoe at altern.org
Thu Jul 22 21:39:22 EDT 2004


Log message for revision 26693:
  Fixed eol and a wrong date in the copyright notice.
  


Changed:
  UU  ldapauth/trunk/tests/test_vocabulary.py
  UU  ldapauth/trunk/vocabulary.py


-=-
Modified: ldapauth/trunk/tests/test_vocabulary.py
===================================================================
--- ldapauth/trunk/tests/test_vocabulary.py	2004-07-23 01:20:53 UTC (rev 26692)
+++ ldapauth/trunk/tests/test_vocabulary.py	2004-07-23 01:39:22 UTC (rev 26693)
@@ -1,6 +1,6 @@
 ##############################################################################
 #
-# Copyright (c) 2003 Zope Corporation and Contributors.
+# Copyright (c) 2004 Zope Corporation and Contributors.
 # All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
@@ -11,9 +11,9 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Tests for Global Wiki Source Type Service.
+"""Tests for ldapauth vocabulary
 
-$Id: test_vocabulary.py 26248 2004-07-08 22:26:40Z srichter $
+$Id$
 """
 import unittest
 


Property changes on: ldapauth/trunk/tests/test_vocabulary.py
___________________________________________________________________
Name: svn:keywords
   + ID

Modified: ldapauth/trunk/vocabulary.py
===================================================================
--- ldapauth/trunk/vocabulary.py	2004-07-23 01:20:53 UTC (rev 26692)
+++ ldapauth/trunk/vocabulary.py	2004-07-23 01:39:22 UTC (rev 26693)
@@ -11,21 +11,21 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Vocabulary for the search scope.
-
-$Id: vocabulary.py 25177 2004-06-02 13:17:31Z rogerineichen $
-"""
-import ldapurl
-
-from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
-
-from zope.app import zapi
-from zope.app.renderer.interfaces import ISource
-
-
-
-def SearchScopeVocabulary(context):
-    """Provide a select field for to select the search scope.
+"""Vocabulary for the search scope.
+
+$Id$
+"""
+import ldapurl
+
+from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
+
+from zope.app import zapi
+from zope.app.renderer.interfaces import ISource
+
+
+
+def SearchScopeVocabulary(context):
+    """Provide a select field for to select the search scope.
        
     For to select the search scope the ldap package use the 
     following definition:
@@ -42,13 +42,13 @@
       'base':LDAP_SCOPE_BASE,
       'one':LDAP_SCOPE_ONELEVEL,
       'sub':LDAP_SCOPE_SUBTREE,
-    }
-    
-    """
-    scopeDict = ldapurl.SEARCH_SCOPE_STR
-    
-    #SEARCH_SCOPE_STR = {None:'',0:'base',1:'one',2:'sub'}
-    
-    return SimpleVocabulary(
-        [SimpleTerm(key, title=value) for key, value in 
-         scopeDict.items()])
+    }
+    
+    """
+    scopeDict = ldapurl.SEARCH_SCOPE_STR
+    
+    #SEARCH_SCOPE_STR = {None:'',0:'base',1:'one',2:'sub'}
+    
+    return SimpleVocabulary(
+        [SimpleTerm(key, title=value) for key, value in 
+         scopeDict.items()])


Property changes on: ldapauth/trunk/vocabulary.py
___________________________________________________________________
Name: svn:keywords
   + ID



More information about the Zope3-Checkins mailing list