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
e47d30d8
Commit
e47d30d8
authored
Nov 28, 2003
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the validateValue api.
parent
70bc55dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
lib/python/Products/OFSP/help/AccessControl.py
lib/python/Products/OFSP/help/AccessControl.py
+0
-7
lib/python/Products/PageTemplates/PythonExpr.py
lib/python/Products/PageTemplates/PythonExpr.py
+2
-2
No files found.
lib/python/Products/OFSP/help/AccessControl.py
View file @
e47d30d8
...
...
@@ -42,13 +42,6 @@ class SecurityManager:
permission -- Always available
"""
def
validateValue
(
self
,
value
,
roles
=
None
):
"""
Convenience for common case of simple value validation.
permission -- Always available
"""
def
checkPermission
(
self
,
permission
,
object
):
"""
Check whether the security context allows the given permission
...
...
lib/python/Products/PageTemplates/PythonExpr.py
View file @
e47d30d8
...
...
@@ -14,7 +14,7 @@
"""Generic Python Expression Handler
"""
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
from
TALES
import
CompilerError
from
sys
import
exc_info
...
...
@@ -23,7 +23,7 @@ class getSecurityManager:
'''Null security manager'''
def
validate
(
self
,
*
args
,
**
kwargs
):
return
1
addContext
=
removeContext
=
validate
Value
=
validate
addContext
=
removeContext
=
validate
class
PythonExpr
:
def
__init__
(
self
,
name
,
expr
,
engine
):
...
...
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