# HG changeset patch # User Paul Boddie # Date 1105397599 -3600 # Node ID 730107aae7345ae3a733dd0a0f216d268a5c2dfa # Parent 2420bedaf1848aa5c84283c4083b8f9435015544 Corrected various base classes (object -> java.lang.Object, Exception -> java.lang.Exception) and fixed raising of exceptions in certain cases. diff -r 2420bedaf184 -r 730107aae734 java/security/__init__.py --- a/java/security/__init__.py Mon Jan 10 23:52:44 2005 +0100 +++ b/java/security/__init__.py Mon Jan 10 23:53:19 2005 +0100 @@ -1,6 +1,8 @@ #!/usr/bin/env python -class AccessControlContext(object): +import java.lang + +class AccessControlContext(java.lang.Object): def __init__(self): # NOTE: Python-only method. self.acc = None @@ -33,7 +35,7 @@ AccessControlContext.init__acc_combiner) setattr(AccessControlContext, "__init_____java__security__ProtectionDomain_array_", AccessControlContext.init__context) -class AccessController(object): +class AccessController(java.lang.Object): def checkPermission(perm): # NOTE: Implement properly. pass