Beispiel #1
0
 def __init__(self, id, key=None):
     Duedil.__init__(self, key)
     self._id = id
     self._url += "company/%s.json?" % (self._id)
     get = self.__get__("fields=get_all")
     for key in get.iterkeys():
         if key == "status":
             self.__setattr__(key, _company_status_lookup[get[key]])
         elif key == "companyType":
             self.__setattr__(key, _company_type_lookup[get[key]])
         else:
             self.__setattr__(key, get[key])
Beispiel #2
0
 def __init__(self, id, key=None):
     Duedil.__init__(self, key)
     self._id = id
     self._url += "company/%s.json?" % (self._id)
     get = self.__get__("fields=get_all")
     for key in get.iterkeys():
         if key == "status":
             self.__setattr__(key, _company_status_lookup[get[key]])
         elif key == "companyType":
             self.__setattr__(key, _company_type_lookup[get[key]])
         else:
             self.__setattr__(key, get[key])
Beispiel #3
0
 def __init__(self, key=None):
     Duedil.__init__(self, key)
     self._url += "search/companies.json?"
Beispiel #4
0
 def __init__(self, key=None):
     Duedil.__init__(self, key)
     self._url += "search/directors.json?"
Beispiel #5
0
 def __init__(self, id, key=None):
     Duedil.__init__(self, key)
     self._url += "director/%s.json?" % (id)
     get = self.__get__("field=get_all")
     for key in get.iterkeys():
         self.__setattr__(key, get[key])
Beispiel #6
0
 def __init__(self, key=None):
      Duedil.__init__(self, key)
      self._url += "search/companies.json?"