aboutsummaryrefslogtreecommitdiff
path: root/h-client/hlibrary.py
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-05-30 18:18:23 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-05-30 18:18:23 +0000
commit10d85ba54884cd8c2c5a16e8b329103a7858acf1 (patch)
treed8531db876eff82fd625347e588a3d628041f475 /h-client/hlibrary.py
parent608eec28eb559dbfd20fe732a506219a09682cbc (diff)
h-client:users can now change the device category - part 1
Diffstat (limited to 'h-client/hlibrary.py')
-rw-r--r--h-client/hlibrary.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/h-client/hlibrary.py b/h-client/hlibrary.py
index e8b577b..85faca6 100644
--- a/h-client/hlibrary.py
+++ b/h-client/hlibrary.py
@@ -569,6 +569,14 @@ class Client:
)
+ #get the list of types
+ def getTypes(self):
+ types = []
+ for Class,struct in self._types.iteritems():
+ if struct['type'] not in types:
+ types.append(struct['type'])
+ return types
+
#check if a distro code is allowed or not
def distroIsAllowed(self,distroCode):
allowedDistroCodes = self.allowedDistros.keys()