0 0 1
default
Jean-Francois Pieronne - 5 years ago 2014-10-20 15:03:08
jf.pieronne@laposte.net
Initial version proxy.py
1 file changed with 24 insertions and 0 deletions:
↑ Collapse Diff ↑
 
new file 100755
1
 
from vms.prxdef import *
2
 
from vms.starlet import add_proxy, display_proxy, delete_proxy
3
 

	
4
 
try:
5
 
  print add_proxy('AANODE', 'USER1', 'USER1',  PRX_M_DEFAULT)
6
 
  print add_proxy('AANODE', 'USER1', 'USER2')
7
 
  print add_proxy('AANODE', 'USER1', 'USER3')
8
 
except VMSError, e:
9
 
  print e
10
 

	
11
 
print display_proxy('*', 'USER1')
12
 

	
13
 
print delete_proxy('AANODE', 'USER1')
14
 

	
15
 
try:
16
 
  print add_proxy('AANODE', 'USER1', 'USER1')
17
 
  print add_proxy('AANODE', 'USER1', 'USER2')
18
 
  print add_proxy('AANODE', 'USER1', 'USER3')
19
 
except VMSError, e:
20
 
  print e
21
 

	
22
 
print display_proxy('*', 'USER1')
23
 

	
24
 
print delete_proxy('AANODE', 'USER1')
0 comments (0 inline, 0 general)