[Checkins] SVN: Zope/trunk/src/Zope2/utilities/ Fixed copyright headers and PEP8 changes

Hanno Schlichting hannosch at hannosch.eu
Thu Jun 24 12:13:14 EDT 2010


Log message for revision 113800:
  Fixed copyright headers and PEP8 changes
  

Changed:
  U   Zope/trunk/src/Zope2/utilities/adduser.py
  U   Zope/trunk/src/Zope2/utilities/finder.py

-=-
Modified: Zope/trunk/src/Zope2/utilities/adduser.py
===================================================================
--- Zope/trunk/src/Zope2/utilities/adduser.py	2010-06-24 16:02:32 UTC (rev 113799)
+++ Zope/trunk/src/Zope2/utilities/adduser.py	2010-06-24 16:13:14 UTC (rev 113800)
@@ -1,20 +1,28 @@
 ##############################################################################
 #
-# This was yanked out of repoze.zope2
+# Copyright (c) 2010 Zope Foundation and Contributors.
 #
+# 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
+#
 ##############################################################################
-
 """ Add a Zope management user to the root Zope user folder """
 
 import sys
 from Zope2.utilities.finder import ZopeFinder
 
+
 def adduser(app, user, pwd):
     import transaction
     result = app.acl_users._doAddUser(user, pwd, ['Manager'], [])
     transaction.commit()
     return result
 
+
 def main(argv=sys.argv):
     import sys
     try:
@@ -29,4 +37,3 @@
 
 if __name__ == '__main__':
     main()
-    

Modified: Zope/trunk/src/Zope2/utilities/finder.py
===================================================================
--- Zope/trunk/src/Zope2/utilities/finder.py	2010-06-24 16:02:32 UTC (rev 113799)
+++ Zope/trunk/src/Zope2/utilities/finder.py	2010-06-24 16:13:14 UTC (rev 113800)
@@ -1,12 +1,21 @@
 ##############################################################################
 #
-# yanked from repoze.zope2
+# Copyright (c) 2010 Zope Foundation and Contributors.
 #
+# 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
+#
 ##############################################################################
 
 import os
 
+
 class ZopeFinder:
+
     def __init__(self, argv):
         self.cmd = argv[0]
 
@@ -38,4 +47,3 @@
         default_config_file = os.path.join(ihome, 'etc', 'zope.conf')
         zope_conf = os.environ.get('ZOPE_CONF', default_config_file)
         return zope_conf
-



More information about the checkins mailing list