From df29bb95b1017de3499eb53ae542c51692d229eb Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Sat, 22 Jan 2005 14:59:33 +0000 Subject: SWIG: Renamed constants from camelCase to UPPER_CASE. --- python/examples/defederation.py | 6 +++--- python/examples/login.py | 22 +++++++++++----------- python/examples/logout.py | 12 ++++++------ python/examples/registration.py | 4 ++-- 4 files changed, 22 insertions(+), 22 deletions(-) (limited to 'python/examples') diff --git a/python/examples/defederation.py b/python/examples/defederation.py index e4b44de8..0b709575 100644 --- a/python/examples/defederation.py +++ b/python/examples/defederation.py @@ -13,7 +13,7 @@ idpidentity_dump = "11111111111111111111111111" @@ -15,7 +15,7 @@ sp1user_dump = "222222222222222222222222" @@ -23,7 +23,7 @@ sp2user_dump = "" -idplogout.load_request_msg(msg_body, lasso.httpMethodSoap) +idplogout.load_request_msg(msg_body, lasso.HTTP_METHOD_SOAP) nameIdentifier = idplogout.nameIdentifier print "get the user dump from NameIdentifier : ", nameIdentifier idplogout.set_user_from_dump(idpuser_dump) @@ -76,7 +76,7 @@ while next_provider_id: print "send soap msg to url", idplogout.msg_url # remote SP send back a LogoutResponse, process it. - idplogout.process_response_msg(response_msg_body, lasso.httpMethodSoap) + idplogout.process_response_msg(response_msg_body, lasso.HTTP_METHOD_SOAP) next_provider_id = idplogout.get_next_providerID() diff --git a/python/examples/registration.py b/python/examples/registration.py index 23d2fb8d..a619fd54 100644 --- a/python/examples/registration.py +++ b/python/examples/registration.py @@ -7,13 +7,13 @@ import lasso # servers : spserver = lasso.Server.new("../../examples/sp.xml", "../../examples/rsapub.pem", "../../examples/rsakey.pem", "../../examples/rsacert.pem", - lasso.signatureMethodRsaSha1) + lasso.SIGNATURE_METHOD_RSA_SHA1) spserver.add_provider("../../examples/idp.xml", None, None) idpserver = lasso.Server.new("../../examples/idp.xml", "../../examples/rsapub.pem", "../../examples/rsakey.pem", "../../examples/rsacert.pem", - lasso.signatureMethodRsaSha1) + lasso.SIGNATURE_METHOD_RSA_SHA1) spserver.add_provider("../../examples/sp.xml", None, None) -- cgit