[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - Settings.py:1.3
Florent Guillaume
fg@nuxeo.com
Mon, 24 Jun 2002 09:34:55 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv6354
Modified Files:
Settings.py
Log Message:
Whitespace cleanup.
=== Zope3/lib/python/Zope/App/Security/Settings.py 1.2 => 1.3 ===
# Copyright (c) 2001, 2002 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.
-#
+#
##############################################################################
""" Security setting constants """
@@ -33,21 +33,21 @@
instances[name] = it = object.__new__(cls)
it._init(name, description)
return it
-
+
def _init(self, name, description):
self.__name = name
- self.__description = description
-
+ self.__description = description
+
def getDescription(self):
return self.__description
-
+
def getName(self):
return self.__name
-
+
def __str__(self):
return "PermissionSetting: %s" % self.__name
-# register PermissionSettings to be symbolic constants by identity,
+# register PermissionSettings to be symbolic constants by identity,
# even when pickled and unpickled.
import copy_reg
copy_reg.constructor(PermissionSetting)
@@ -56,7 +56,6 @@
PermissionSetting)
-
Allow = PermissionSetting('Allow',
'Explicit allow setting for permissions')