2010-11-14 17:33:08 -05:00
|
|
|
# Bryan Schumaker (11/14/2010)
|
|
|
|
|
|
|
|
from libsaria import trees
|
|
|
|
|
2010-11-14 17:50:57 -05:00
|
|
|
t = trees.get_pref_tree("prefs")
|
|
|
|
t.disp()
|
2010-11-14 17:33:08 -05:00
|
|
|
|
|
|
|
t.set_pref("libsaria.random", True)
|
|
|
|
t.init_pref("libsaria.a.b", 42)
|
|
|
|
|
|
|
|
print t.get_pref("libsaria.random")
|
|
|
|
print t.get_pref("libsaria.a.b")
|
|
|
|
|
|
|
|
t.set_pref("libsaria.random", False)
|
|
|
|
print t.get_pref("libsaria.random")
|
|
|
|
|
2010-11-14 17:50:57 -05:00
|
|
|
t.disp()
|