File: __init__.py

package info (click to toggle)
zope-verbosesecurity 0.6-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 104 kB
  • ctags: 102
  • sloc: python: 613; makefile: 34; sh: 23
file content (25 lines) | stat: -rw-r--r-- 991 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
##############################################################################
#
# Copyright (c) 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
#
##############################################################################
__doc__="""VerboseSecurity product.

$Id: __init__.py,v 1.3 2004/06/17 02:38:44 shane Exp $
"""

import os
from VerboseSecurityPolicy import VerboseSecurityPolicy

if os.environ.get('ZOPE_VERBOSE_SECURITY', '1'):
    from AccessControl.SecurityManager import setSecurityPolicy
    setSecurityPolicy(VerboseSecurityPolicy())
    import PermissionRolePatch