source: examples/python_tests/partial_proof_rt0/dump_db.py @ 212e99f

mei_rt2mei_rt2_fix_1 libabac-0.2.2apre-partial
Last change on this file since 212e99f was a7f03f3, checked in by Mei <mei@…>, 12 years ago

1) add the new yap porting directory and some of code
2) add parital proof test code

  • Property mode set to 100755
File size: 464 bytes
Line 
1#!/usr/bin/env python
2
3"""
4cmd1:env keystore=`pwd` ./query.py
5cmd2: env ABAC_CN=1 keystore=`pwd` ./query.py
6
7"""
8
9import os
10import ABAC
11
12ctxt = ABAC.Context()
13
14# Keystore is the directory containing the principal credentials.
15# Load existing principals and/or policy credentials
16if (os.environ.has_key("keystore")) :
17    keystore=os.environ["keystore"]
18    ctxt.load_directory(keystore)
19else:
20    print("keystore is not set...")
21    exit(1)
22
23ctxt.dump_yap_db()
24
25
Note: See TracBrowser for help on using the repository browser.