diff options
author | Akos PASZTORY <ext-akos.pasztory@nokia.com> | 2009-05-14 14:31:13 +0300 |
---|---|---|
committer | Gergely Risko <ext-risko.gergely@nokia.com> | 2009-05-26 15:17:19 +0300 |
commit | 9efba78ba665662fb73cf810c6b7e146a992fd16 (patch) | |
tree | 3ae2f2fb72ef283800b34a9bb423f1cbebe6fd2a /python/simple.py | |
parent | 338e88b325d0dbf3df8bb271bc0d168c21ce1ee6 (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() |