12f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wiley#!/usr/bin/python 22f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wiley 32f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wileyimport sys, dbus, flimflam 42f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wiley 52f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wileyflim = flimflam.FlimFlam(dbus.SystemBus()) 62f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wiley 72f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wileyif (len(sys.argv) < 2): 82f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wiley print "Service order is %s" % flim.GetServiceOrder() 92f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wileyelse: 102f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wiley orders = flim.SetServiceOrder(sys.argv[1]) 112f48d9572459c2c90d68e8b017b86eb843fe2a74Christopher Wiley print "Service order %s => %s" % orders 12