source: tests/example_scripts/wiki/attr2.py @ 1afd681

abac0-leakabac0-mei
Last change on this file since 1afd681 was 1afd681, checked in by Mei <mei@…>, 11 years ago

1) ready the 1.5 release..
2) tested out the new attribute features (nicknames), multiple GENI

attribute formats

3) polish up testing' build dir alittle bit more..

  • Property mode set to 100755
File size: 273 bytes
Line 
1#!/usr/bin/env python
2"""
3attr2.py
4"""
5import os
6import ABAC
7
8a = ABAC.ID("A", 24 * 3600 * 365 * 20)
9
10attr = ABAC.Attribute(a, "friendly_admin", 24 * 3600 * 365 * 20)
11attr.role(a.keyid(), "friendly")
12attr.role(a.keyid(), "admin")
13attr.bake()
14
15attr.write_file("attr.xml")
16
17
Note: See TracBrowser for help on using the repository browser.