From 9efba78ba665662fb73cf810c6b7e146a992fd16 Mon Sep 17 00:00:00 2001 From: Akos PASZTORY Date: Thu, 14 May 2009 14:31:13 +0300 Subject: Bringing the python stuff alive. Moved from tools/flexiprovider to python/ContextKit, added into the build infrastructure and adapted scripts. --- python/simple.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 python/simple.py (limited to 'python/simple.py') 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() -- cgit v1.2.3