Commit e47d30d8 authored by Jim Fulton's avatar Jim Fulton

Removed the validateValue api.

parent 70bc55dd
......@@ -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
......
......@@ -14,7 +14,7 @@
"""Generic Python Expression Handler
"""
__version__='$Revision: 1.12 $'[11:-2]
__version__='$Revision: 1.13 $'[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 = validateValue = validate
addContext = removeContext = validate
class PythonExpr:
def __init__(self, name, expr, engine):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment