From 608eec28eb559dbfd20fe732a506219a09682cbc Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Thu, 26 May 2011 14:15:16 +0000 Subject: h-client:the type of each device can be now updated during the synchronize process --- h-client/test.py | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'h-client/test.py') diff --git a/h-client/test.py b/h-client/test.py index 9fef89c..c09d6a2 100644 --- a/h-client/test.py +++ b/h-client/test.py @@ -32,15 +32,34 @@ client.createDevices() #print dev[0].getYear() #print dev[3] #print dev[0].getHowItWorks() - #print dev[0].getDescription()+"\n"+"\n" + #print dev[0].getDescription() + #print dev[0].getIcon() + ##dev[0].addDistribution('taranis') + ##dev[0].addDistribution('metad') + ##dev[0].addDistribution('gingo') + ##dev[0].addDistribution('taranis') + #print dev[0].getDistributions() + ##print dev[0].userDistribution() + +client.changeType('u_0846:4260','wifi') + + +for key,dev in client.devices.iteritems(): + print key + print dev[0].getModel() + print dev[0].getType() + print dev[0].getDistributions() + print dev[0].getYear() + print dev[3] + print dev[0].getHowItWorks() + print dev[0].getDescription() + print dev[0].getIcon() #dev[0].addDistribution('taranis') #dev[0].addDistribution('metad') #dev[0].addDistribution('gingo') #dev[0].addDistribution('taranis') - #print dev[0].getDistributions() + print dev[0].getDistributions() #print dev[0].userDistribution() - - #client.login('','') ##print client.isLogged() #client.submit() -- cgit v1.2.3