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
c8382052
Commit
c8382052
authored
Jun 19, 2000
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction of namespace access control setup. _() and _.namespace()
should work again.
parent
c44e4f77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lib/python/AccessControl/SimpleObjectPolicies.py
lib/python/AccessControl/SimpleObjectPolicies.py
+5
-4
No files found.
lib/python/AccessControl/SimpleObjectPolicies.py
View file @
c8382052
...
...
@@ -84,8 +84,8 @@
##############################################################################
__doc__
=
'''Collect rules for access to objects that don
\
'
t have roles.
$Id: SimpleObjectPolicies.py,v 1.
4 2000/05/26 22:06:08
shane Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
$Id: SimpleObjectPolicies.py,v 1.
5 2000/06/19 13:54:22
shane Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
Record
...
...
@@ -103,10 +103,11 @@ from DocumentTemplate.DT_Util import TemplateDict
# being a key in the ContainerAssertions.
templateDict
=
TemplateDict
()
try
:
dictInstance
=
templateDict
(
dummy
=
1
)
dictInstance
=
templateDict
(
dummy
=
1
)
[
0
]
ContainerAssertions
[
type
(
dictInstance
)]
=
1
except
:
# We're probably using pDocumentTemplate.
# Hmm, this may cause _() and _.namespace() to fail.
# What to do?
pass
Containers
=
ContainerAssertions
.
get
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