source: examples/python_tests/balltime_rt2/setup.py @ 7211a95

mei_rt2mei_rt2_fix_1
Last change on this file since 7211a95 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: 410 bytes
Line 
1#!/usr/bin/env python
2
3"""
4"""
5import os
6import ABAC
7
8ctxt = ABAC.Context()
9
10leagueID=ABAC.ID("League", 0)
11leagueID.id_write_cert("League_ID.pem")
12leagueID.id_write_privkey("League_private.pem")
13
14johnID=ABAC.ID("John", 0)
15johnID.id_write_cert("John_ID.pem")
16johnID.id_write_privkey("John_private.pem")
17
18markID=ABAC.ID("Mark", 0)
19markID.id_write_cert("Mark_ID.pem")
20markID.id_write_privkey("Mark_private.pem")
21
Note: See TracBrowser for help on using the repository browser.