Commit 9a3d5f68 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 88a0c26b
......@@ -18,6 +18,10 @@ Zope Changes
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
%20 in the URL
......
......@@ -365,8 +365,6 @@ static PyObject *permissionName(PyObject *name);
static PyObject *SecurityManager_validate(SecurityManager *self,
PyObject *args);
static PyObject *SecurityManager_validateValue(SecurityManager *self,
PyObject *args);
static PyObject *SecurityManager_DTMLValidate(SecurityManager *self,
PyObject *args);
static PyObject *SecurityManager_checkPermission(SecurityManager *self,
......@@ -470,11 +468,6 @@ static PyMethodDef SecurityManager_methods[] = {
METH_VARARGS,
""
},
{"validateValue",
(PyCFunction)SecurityManager_validateValue,
METH_VARARGS,
""
},
{"checkPermission",
(PyCFunction)SecurityManager_checkPermission,
METH_VARARGS,
......@@ -1327,23 +1320,6 @@ SecurityManager_validate(SecurityManager *self, PyObject *args)
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 *
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