Bug fix: Do not select inactive prescriptions when click 'Check All'.
[openemr.git] / gacl / soap / clients / python_client.py
blob4e2a1df1f1c04d350bb4fe0512c3b13f8e8dadd6
1 #!/usr/bin/python
3 # This uses the Python ZSI SOAP Infrastructure from: http://pywebsvcs.sourceforge.net/
6 import sys;
7 from ZSI.client import Binding;
9 #soapclient = Binding(url='/phpgacl/soap/server.php', host='hubcap.netnation.com', tracefile=sys.stdout);
10 soapclient = Binding(url='/phpgacl/soap/server.php', host='hubcap.netnation.com');
12 def acl_check(aco_section_value, aco_value, aro_section_value, aro_value, axo_section_value=0, axo_value=0, root_aro_group_id=0, root_axo_group_id=0):
13 return soapclient.acl_check(aco_section_value, aco_value, aro_section_value, aro_value, axo_section_value, axo_value, root_aro_group_id, root_axo_group_id);
16 if ( acl_check('system','login','users','john_doe') ):
17 print "John Doe has been granted access to login!<br>\n";
18 else:
19 print "John Doe has been denied access to login!<br>\n";