diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-03-25 02:33:52 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-03-25 02:33:52 +0000 |
commit | f6b4db01c53c6bf42acb89855d304a4fcded3a31 (patch) | |
tree | 61c5a89048723d62e582d9651d0423e3ec46b4aa /h-client/hlibrary.py | |
parent | 558ef7dfa6e741177b476f7c26b6b615382edeae (diff) |
added synchronize button and reset button
Diffstat (limited to 'h-client/hlibrary.py')
-rw-r--r-- | h-client/hlibrary.py | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/h-client/hlibrary.py b/h-client/hlibrary.py index a9e93dd..c08239f 100644 --- a/h-client/hlibrary.py +++ b/h-client/hlibrary.py @@ -59,6 +59,31 @@ class Device(object): #'venenux_0_8_2' : 'VENENUX-EC 0.8.2' #} + #allowed years of commercialization + _years = [ + 'not-specified', + '2011', + '2010', + '2009', + '2008', + '2007', + '2006', + '2005', + '2004', + '2003', + '2002', + '2001', + '2000', + '1999', + '1998', + '1997', + '1996', + '1995', + '1994', + '1993', + '1992' + ] + #list of interfaces _interfaces = [] @@ -150,6 +175,9 @@ class Device(object): def getInterfaces(self): return self._interfaces + def getYears(self): + return self._years + def getType(self): return self._type @@ -283,6 +311,9 @@ class Mycurl: if self.domain[len(self.domain)-1] != '/': self.domain += '/' + def getDomain(self): + return self.domain + def setPost(self,post): self._post = post @@ -326,9 +357,12 @@ class Client: } } - def __init__(self,url = ''): + def __init__(self,url = 'http://www.h-node.com'): self.request = Mycurl(url) + def getNode(self): + return self.request.getDomain() + def setNode(self,domain): self.request.setDomain(domain) |