From dfdf11645e1abc61d3bc2143f26e2dc3e59289fc Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 1 May 2011 10:38:34 +0000 Subject: h-client:added unknown device --- h-client/hlibrary.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'h-client') diff --git a/h-client/hlibrary.py b/h-client/hlibrary.py index 83ca3a9..6c3803c 100644 --- a/h-client/hlibrary.py +++ b/h-client/hlibrary.py @@ -312,6 +312,18 @@ class Printer(Device): super(Printer, self).setPost() self._post['compatibility'] = self._howItWorks self._post['subtype'] = self._subtype + +class Unknown(Device): + + def __init__(self): + super(Unknown, self).__init__() + self._type = 'unknown' + self._howItWorks = 'no' + self._interfaces = ['not-specified'] + self._icon = 'unknown.png' + + def setPost(self): + super(Unknown, self).setPost() #class to carry out http requests by means of pycurl class Mycurl: -- cgit v1.2.3