Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
86774ca9
Commit
86774ca9
authored
May 25, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
8799e285
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
doc/CHANGES.txt
doc/CHANGES.txt
+13
-2
lib/python/AccessControl/ZopeSecurityPolicy.py
lib/python/AccessControl/ZopeSecurityPolicy.py
+4
-2
No files found.
doc/CHANGES.txt
View file @
86774ca9
...
@@ -13,8 +13,8 @@ Zope changes
...
@@ -13,8 +13,8 @@ Zope changes
release. Change information for older versions is now in
release. Change information for older versions is now in
the file HISTORY.txt.
the file HISTORY.txt.
- Added
support for mountable databases. A separate product
- Added
basic internal support for mountable databases. A separate
will still be required to make use of this ability.
product
will still be required to make use of this ability.
Bugs Fixed
Bugs Fixed
...
@@ -51,5 +51,16 @@ Zope changes
...
@@ -51,5 +51,16 @@ Zope changes
- A problem that caused the query template for an SQL method to
- A problem that caused the query template for an SQL method to
be rendered twice when used from the "test" tab has been fixed.
be rendered twice when used from the "test" tab has been fixed.
- Fix for bug #1270: Netscape Image Problems. Added casts to long
to avoid an overflow error caused when trying to convert dates
sent by certain versions of Netscape in the If-Modified-Since
header.
- Corrected DateTime.py to recognize years specified as 00 through
- Corrected DateTime.py to recognize years specified as 00 through
69 as 2000 through 2069.
69 as 2000 through 2069.
- A bug that made objects named in dtml namespaces always fail
security validation was fixed. This was noticed by folks trying
to use manage_tabs from ZClasses who hit the bug because the
manage_tags document uses a namespace:
<dtml-with "_(manage_options=...">
lib/python/AccessControl/ZopeSecurityPolicy.py
View file @
86774ca9
...
@@ -85,14 +85,15 @@
...
@@ -85,14 +85,15 @@
__doc__
=
'''Define Zope
\
'
s default security policy
__doc__
=
'''Define Zope
\
'
s default security policy
$Id: ZopeSecurityPolicy.py,v 1.
3 2000/05/24 20:53:33 shane
Exp $'''
$Id: ZopeSecurityPolicy.py,v 1.
4 2000/05/25 18:34:08 brian
Exp $'''
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
SimpleObjectPolicies
import
SimpleObjectPolicies
_noroles
=
[]
_noroles
=
[]
from
PermissionRole
import
_what_not_even_god_should_do
,
rolesForPermissionOn
from
PermissionRole
import
_what_not_even_god_should_do
,
rolesForPermissionOn
class
ZopeSecurityPolicy
:
class
ZopeSecurityPolicy
:
def
validate
(
self
,
accessed
,
container
,
name
,
value
,
context
,
def
validate
(
self
,
accessed
,
container
,
name
,
value
,
context
,
...
@@ -101,6 +102,7 @@ class ZopeSecurityPolicy:
...
@@ -101,6 +102,7 @@ class ZopeSecurityPolicy:
Containers
=
SimpleObjectPolicies
.
Containers
,
Containers
=
SimpleObjectPolicies
.
Containers
,
valid_aq_
=
(
'aq_parent'
,
'aq_explicit'
)):
valid_aq_
=
(
'aq_parent'
,
'aq_explicit'
)):
############################################################
############################################################
# Provide special rules for the acquisition attributes
# Provide special rules for the acquisition attributes
if
type
(
name
)
is
StringType
:
if
type
(
name
)
is
StringType
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment