source: examples/python_tests/fruits_rt2/setup.py @ 669b481

mei_rt2mei_rt2_fix_1
Last change on this file since 669b481 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: 403 bytes
Line 
1#!/usr/bin/env python
2
3"""
4"""
5import os
6import ABAC
7
8ctxt = ABAC.Context()
9
10ralphsID=ABAC.ID("Ralphs", 0)
11ralphsID.id_write_cert("Ralphs_ID.pem")
12ralphsID.id_write_privkey("Ralphs_private.pem")
13
14bobID=ABAC.ID("Bob", 0)
15bobID.id_write_cert("Bob_ID.pem")
16bobID.id_write_privkey("Bob_private.pem")
17
18maryID=ABAC.ID("Mary", 0)
19maryID.id_write_cert("Mary_ID.pem")
20maryID.id_write_privkey("Mary_private.pem")
Note: See TracBrowser for help on using the repository browser.