diff options
author | Akos PASZTORY <ext-akos.pasztory@nokia.com> | 2009-05-14 14:31:13 +0300 |
---|---|---|
committer | Akos PASZTORY <ext-akos.pasztory@nokia.com> | 2009-05-18 15:37:20 +0300 |
commit | 0583a54de97579997bc013ea17db6559be044813 (patch) | |
tree | 7dcfaa69302a3f4a71a99ecb6a04ed2642902b9a /python/simple.py | |
parent | 97fa9350c5d18dd28832b0233308a887feaaa932 (diff) |
Bringing the python stuff alive.
Moved from tools/flexiprovider to python/ContextKit, added into the build
infrastructure and adapted scripts.
Diffstat (limited to 'python/simple.py')
-rwxr-xr-x | python/simple.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python/simple.py b/python/simple.py new file mode 100755 index 00000000..a74cecdf --- /dev/null +++ b/python/simple.py @@ -0,0 +1,12 @@ +#!/usr/bin/python +""" +A very simple example of the Flexiprovider. Exports three properties +initially. +""" + +from ContextKit.flexiprovider import * + +Flexiprovider([INT('location.altitude'), + STRING('my.name', 'flexi'), + TRUTH('is.out.there')], + 'ctx.flexi.provider', 'session').interactive() |