Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
2ca62e1a
Commit
2ca62e1a
authored
Nov 28, 2003
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to use new-style ExtensionClass.
parent
dbd3a4b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
lib/python/AccessControl/cAccessControl.c
lib/python/AccessControl/cAccessControl.c
+6
-14
No files found.
lib/python/AccessControl/cAccessControl.c
View file @
2ca62e1a
...
...
@@ -36,7 +36,7 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
$Id: cAccessControl.c,v 1.2
2 2003/10/24 01:21:48 chris
m Exp $
$Id: cAccessControl.c,v 1.2
3 2003/11/28 16:44:12 ji
m Exp $
If you have questions regarding this software,
contact:
...
...
@@ -449,7 +449,7 @@ static PyExtensionClass ZopeSecurityPolicyType = {
NULL
,
/* tp_next */
#endif
METHOD_CHAIN
(
ZopeSecurityPolicy_methods
),
/* methods */
EXTENSIONCLASS_BINDABLE_FLAG
,
/* flags */
(
void
*
)(
EXTENSIONCLASS_BINDABLE_FLAG
)
,
/* flags */
};
...
...
@@ -567,11 +567,8 @@ static PyExtensionClass PermissionRoleType = {
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 */
NULL
,
/* reserved */
};
static
char
imPermissionRole__doc__
[]
=
"imPermissionRole C implementation"
;
...
...
@@ -632,7 +629,7 @@ static PyExtensionClass imPermissionRoleType = {
NULL
,
/* tp_next */
#endif
METHOD_CHAIN
(
imPermissionRole_methods
),
/* methods */
EXTENSIONCLASS_BINDABLE_FLAG
,
/* flags */
(
void
*
)(
EXTENSIONCLASS_BINDABLE_FLAG
)
,
/* flags */
};
...
...
@@ -2073,17 +2070,12 @@ void initcAccessControl(void) {
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
,
"$Id: cAccessControl.c,v 1.2
2 2003/10/24 01:21:48 chris
m Exp $
\n
"
);
"$Id: cAccessControl.c,v 1.2
3 2003/11/28 16:44:12 ji
m Exp $
\n
"
);
aq_init
();
/* For Python <= 2.1.1, aq_init() should be after
Py_InitModule(). */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment