Commit f326e88a authored by Andreas Jung's avatar Andreas Jung

- Collector #2019: removed validateValue() from cAccessControl (already

        removed in former Zope versions from the AccessControl Python
        implementation)
parent fc854abd
...@@ -197,6 +197,10 @@ Zope Changes ...@@ -197,6 +197,10 @@ Zope Changes
Bugs Fixed Bugs Fixed
- Collector #2019: removed validateValue() from cAccessControl (already
removed in former Zope versions from the AccessControl Python
implementation)
- Collector #1991: ZPublisher did not deal properly with a trailing - Collector #1991: ZPublisher did not deal properly with a trailing
%20 in the URL %20 in the URL
......
...@@ -365,8 +365,6 @@ static PyObject *permissionName(PyObject *name); ...@@ -365,8 +365,6 @@ static PyObject *permissionName(PyObject *name);
static PyObject *SecurityManager_validate(SecurityManager *self, static PyObject *SecurityManager_validate(SecurityManager *self,
PyObject *args); PyObject *args);
static PyObject *SecurityManager_validateValue(SecurityManager *self,
PyObject *args);
static PyObject *SecurityManager_DTMLValidate(SecurityManager *self, static PyObject *SecurityManager_DTMLValidate(SecurityManager *self,
PyObject *args); PyObject *args);
static PyObject *SecurityManager_checkPermission(SecurityManager *self, static PyObject *SecurityManager_checkPermission(SecurityManager *self,
...@@ -470,11 +468,6 @@ static PyMethodDef SecurityManager_methods[] = { ...@@ -470,11 +468,6 @@ static PyMethodDef SecurityManager_methods[] = {
METH_VARARGS, METH_VARARGS,
"" ""
}, },
{"validateValue",
(PyCFunction)SecurityManager_validateValue,
METH_VARARGS,
""
},
{"checkPermission", {"checkPermission",
(PyCFunction)SecurityManager_checkPermission, (PyCFunction)SecurityManager_checkPermission,
METH_VARARGS, METH_VARARGS,
...@@ -1325,23 +1318,6 @@ SecurityManager_validate(SecurityManager *self, PyObject *args) ...@@ -1325,23 +1318,6 @@ SecurityManager_validate(SecurityManager *self, PyObject *args)
accessed, container, name, value, self->context, roles); accessed, container, name, value, self->context, roles);
} }
static PyObject *
SecurityManager_validateValue(SecurityManager *self, PyObject *args)
{
PyObject *value=Py_None, *roles=NULL;
if (unpacktuple2(args, "validateValue", 1, &value, &roles) < 0) return NULL;
CHECK_SECURITY_MANAGER_STATE(self, NULL);
GET_SECURITY_MANAGER_VALIDATE(self, NULL);
if (roles==NULL)
return callfunction5(self->validate,
Py_None, Py_None, Py_None, value, self->context);
return callfunction6(self->validate,
Py_None, Py_None, Py_None, value, self->context, roles);
}
static PyObject * static PyObject *
SecurityManager_DTMLValidate(SecurityManager *self, PyObject *args) SecurityManager_DTMLValidate(SecurityManager *self, PyObject *args)
{ {
......
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