source: examples/python_tests/access_rt2/access.save @ ed3dc05

mei_rt2mei_rt2_fix_1
Last change on this file since ed3dc05 was 5110d42, checked in by Mei <mei@…>, 13 years ago

1) reorganized the test directory to include python tests
2) attribute via api and principal via api from python scripts is

working (although there is a annoying seg fault at the very end
that must be related to something not been dup()ed.. need to wait
for c example to debug it)

3) able to query via api
4) replicated access_rt2 example in python and the query result matches
5) expanded api to make it easier to generate rt2 structure

  • Property mode set to 100644
File size: 415 bytes
Line 
1% Restoring file /usr/local/lib/Yap/startup.yss
2
3===good============ Alpha.access(Read,fileA)<-?-Bob
4YAP query succeed
5pAlpha.access('Read',F:pAlpha.documents(P)) <- pAlpha.team(P)
6pAlpha.documents('proj1') <- 'file//fileA'
7pAlpha.team('proj1') <- pBob
8
9===bad============ Alpha.access(Read,fileA)<-?-Joe
10YAP query failed
11
12===good============ Alpha.team(proj2)<-?-Joe
13YAP query succeed
14pAlpha.team('proj2') <- pJoe
Note: See TracBrowser for help on using the repository browser.