source: examples/python_tests/leader_rt1/setup.py @ 47d5cf9

mei_rt2mei_rt2_fix_1
Last change on this file since 47d5cf9 was 7211a95, checked in by Mei <mei@…>, 12 years ago

1) add more python examples
2) add the missing linking role and linking oset api calls
3) fix the output of time typed data term/oset obj in typed_string format

(transform back from yap time format to our ddddddddTdddddd format

  • Property mode set to 100755
File size: 517 bytes
Line 
1#!/usr/bin/env python
2
3"""
4  to test with python
5
6
7"""
8import os
9import ABAC
10
11ctxt = ABAC.Context()
12
13geniID=ABAC.ID("Geni", 0)
14geniID.id_write_cert("Geni_ID.pem")
15geniID.id_write_privkey("Geni_private.pem")
16
17bobID=ABAC.ID("Bob", 0)
18bobID.id_write_cert("Bob_ID.pem")
19bobID.id_write_privkey("Bob_private.pem")
20
21jackID=ABAC.ID("Jack", 0)
22jackID.id_write_cert("Jack_ID.pem")
23jackID.id_write_privkey("Jack_private.pem")
24
25joeID=ABAC.ID("Joe", 0)
26joeID.id_write_cert("Joe_ID.pem")
27joeID.id_write_privkey("Joe_private.pem")
28
Note: See TracBrowser for help on using the repository browser.