source: examples/access_tests/creddy_prover/dumpdb.py @ b4b0d0a

mei_rt2
Last change on this file since b4b0d0a was b4b0d0a, checked in by Mei <mei@…>, 11 years ago

1) more tweaking..

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