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])
def __init__(self, key=None): Duedil.__init__(self, key) self._url += "search/companies.json?"
def __init__(self, key=None): Duedil.__init__(self, key) self._url += "search/directors.json?"
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])