[Zope-Checkins] CVS: Zope/lib/python/AccessControl - cAccessControl.c:1.25

Brian Lloyd brian at zope.com
Wed Jan 14 14:42:30 EST 2004


Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv5355

Modified Files:
	cAccessControl.c 
Log Message:
add lost NSEC changes


=== Zope/lib/python/AccessControl/cAccessControl.c 1.24 => 1.25 ===
--- Zope/lib/python/AccessControl/cAccessControl.c:1.24	Wed Jan 14 14:03:53 2004
+++ Zope/lib/python/AccessControl/cAccessControl.c	Wed Jan 14 14:42:30 2004
@@ -455,7 +455,7 @@
 	NULL,					/* tp_next	*/
 #endif
 	METHOD_CHAIN(ZopeSecurityPolicy_methods),/* methods	*/
-	EXTENSIONCLASS_BINDABLE_FLAG,		/* flags	*/
+	(void *)(EXTENSIONCLASS_BINDABLE_FLAG),		/* flags	*/
 };
 
 
@@ -573,7 +573,7 @@
 	NULL,					/* tp_next	*/
 #endif
 	METHOD_CHAIN(PermissionRole_methods),	/* methods	*/
-	EXTENSIONCLASS_BINDABLE_FLAG/*|
+	(void *)(EXTENSIONCLASS_BINDABLE_FLAG)/*|
 	EXTENSIONCLASS_INSTDICT_FLAG*/,		/* flags	*/
 	NULL,					/* Class dict	*/
 	NULL,					/* bases	*/
@@ -638,7 +638,7 @@
 	NULL,					/* tp_next	*/
 #endif
 	METHOD_CHAIN(imPermissionRole_methods), /* methods	*/
-	EXTENSIONCLASS_BINDABLE_FLAG,		/* flags	*/
+	(void *)(EXTENSIONCLASS_BINDABLE_FLAG),		/* flags	*/
 };
 
 
@@ -2319,13 +2319,7 @@
 
 	if (ZopeSecurityPolicy_setup() < 0) return;
 
-	ZopeSecurityPolicyType.tp_getattro =
-		(getattrofunc) PyExtensionClassCAPI->getattro;
-
-	ExtensionClassGetattro= PyExtensionClassCAPI->getattro;
-
-	imPermissionRoleType.tp_getattro =
-		(getattrofunc) PyExtensionClassCAPI->getattro;
+	ExtensionClassGetattro= Py_FindAttr;
 
 	module = Py_InitModule3("cAccessControl",
 		cAccessControl_methods,




More information about the Zope-Checkins mailing list