source: examples/python_tests/partial_proof_rt1/dump_db.py @ 20eaefe

mei_rt2mei_rt2_fix_1
Last change on this file since 20eaefe was da73657, checked in by Mei <mei@…>, 12 years ago

1) example for partial proof

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