Commit adf2107f authored by Brian Lloyd's avatar Brian Lloyd

add lost NSEC changes

parent 04250c86
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. DAMAGE.
$Id: cAccessControl.c,v 1.24 2004/01/14 19:03:53 Brian Exp $ $Id: cAccessControl.c,v 1.25 2004/01/14 19:42:30 Brian Exp $
If you have questions regarding this software, If you have questions regarding this software,
contact: contact:
...@@ -455,7 +455,7 @@ static PyExtensionClass ZopeSecurityPolicyType = { ...@@ -455,7 +455,7 @@ static PyExtensionClass ZopeSecurityPolicyType = {
NULL, /* tp_next */ NULL, /* tp_next */
#endif #endif
METHOD_CHAIN(ZopeSecurityPolicy_methods),/* methods */ METHOD_CHAIN(ZopeSecurityPolicy_methods),/* methods */
EXTENSIONCLASS_BINDABLE_FLAG, /* flags */ (void *)(EXTENSIONCLASS_BINDABLE_FLAG), /* flags */
}; };
...@@ -573,7 +573,7 @@ static PyExtensionClass PermissionRoleType = { ...@@ -573,7 +573,7 @@ static PyExtensionClass PermissionRoleType = {
NULL, /* tp_next */ NULL, /* tp_next */
#endif #endif
METHOD_CHAIN(PermissionRole_methods), /* methods */ METHOD_CHAIN(PermissionRole_methods), /* methods */
EXTENSIONCLASS_BINDABLE_FLAG/*| (void *)(EXTENSIONCLASS_BINDABLE_FLAG)/*|
EXTENSIONCLASS_INSTDICT_FLAG*/, /* flags */ EXTENSIONCLASS_INSTDICT_FLAG*/, /* flags */
NULL, /* Class dict */ NULL, /* Class dict */
NULL, /* bases */ NULL, /* bases */
...@@ -638,7 +638,7 @@ static PyExtensionClass imPermissionRoleType = { ...@@ -638,7 +638,7 @@ static PyExtensionClass imPermissionRoleType = {
NULL, /* tp_next */ NULL, /* tp_next */
#endif #endif
METHOD_CHAIN(imPermissionRole_methods), /* methods */ METHOD_CHAIN(imPermissionRole_methods), /* methods */
EXTENSIONCLASS_BINDABLE_FLAG, /* flags */ (void *)(EXTENSIONCLASS_BINDABLE_FLAG), /* flags */
}; };
...@@ -2319,17 +2319,11 @@ void initcAccessControl(void) { ...@@ -2319,17 +2319,11 @@ void initcAccessControl(void) {
if (ZopeSecurityPolicy_setup() < 0) return; if (ZopeSecurityPolicy_setup() < 0) return;
ZopeSecurityPolicyType.tp_getattro = ExtensionClassGetattro= Py_FindAttr;
(getattrofunc) PyExtensionClassCAPI->getattro;
ExtensionClassGetattro= PyExtensionClassCAPI->getattro;
imPermissionRoleType.tp_getattro =
(getattrofunc) PyExtensionClassCAPI->getattro;
module = Py_InitModule3("cAccessControl", module = Py_InitModule3("cAccessControl",
cAccessControl_methods, cAccessControl_methods,
"$Id: cAccessControl.c,v 1.24 2004/01/14 19:03:53 Brian Exp $\n"); "$Id: cAccessControl.c,v 1.25 2004/01/14 19:42:30 Brian Exp $\n");
aq_init(); /* For Python <= 2.1.1, aq_init() should be after aq_init(); /* For Python <= 2.1.1, aq_init() should be after
Py_InitModule(). */ Py_InitModule(). */
......
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