From 10d85ba54884cd8c2c5a16e8b329103a7858acf1 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 30 May 2011 18:18:23 +0000 Subject: h-client:users can now change the device category - part 1 --- h-client/hlibrary.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'h-client/hlibrary.py') 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() -- cgit v1.2.3