def __init__(self, repo_url='https://raw.githubusercontent.com/OpenMobileAlliance/lwm2m-registry/test'):
    self.repo_url = repo_url
    ddf_url = (repo_url + '/DDF.xml')
    root = ElementTree.fromstring(_read_url(ddf_url))
    entries = (Lwm2mObjectEntry(obj) for obj in root.findall('Item'))
    grouped = ((int(key), list(group)) for (key, group) in groupby(entries, attrgetter('ObjectID')))
    self.objects = collections.OrderedDict(grouped)
def __init__(self, repo_url='https://raw.githubusercontent.com/OpenMobileAlliance/lwm2m-registry/test'):
    self.repo_url = repo_url
    ddf_url = (repo_url + '/DDF.xml')
    root = ElementTree.fromstring(_read_url(ddf_url))
    entries = (Lwm2mObjectEntry(obj) for obj in root.findall('Item'))
    grouped = ((int(key), list(group)) for (key, group) in groupby(entries, attrgetter('ObjectID')))
    self.objects = collections.OrderedDict(grouped)