Exemple #1
0
def create_eu_bodies():
    loader = make_loader(source_url=URL)
    for body in get_eu_bodies():
        e = loader.make_entity(SCHEMATA,
            source_url='http://asktheeu.org/en/body/' + body.get('URL name'))
        e.set('name', body.pop('Name'))
        e.set('asktheeu_slug', body.pop('URL name'))
        e.set('asktheeu_notes', body.pop('Notes'))
        e.set('abbreviation', body.pop('Short name'))
        e.set('url', body.pop('Home page'))
        e.set('public_body_type', body.pop('Tags'))
        e.save()
    loader.persist()
def create_eu_bodies():
    loader = make_loader(source_url=URL)
    for body in get_eu_bodies():
        e = loader.make_entity(SCHEMATA,
                               source_url='http://asktheeu.org/en/body/' +
                               body.get('URL name'))
        e.set('name', body.pop('Name'))
        e.set('asktheeu_slug', body.pop('URL name'))
        e.set('asktheeu_notes', body.pop('Notes'))
        e.set('abbreviation', body.pop('Short name'))
        e.set('url', body.pop('Home page'))
        e.set('public_body_type', body.pop('Tags'))
        e.save()
    loader.persist()
def load_all():
    loader = make_loader(source_url=EXPERTS_URL)
    for row in exp_group:
        load(loader, row)
def load_all():
    loader = make_loader()
    for row in reg_representative:
        load(loader, row)
def load_all():
    loader = make_loader(source_url=FTS_URL)
    for row in fts_entry:
        load(loader, row)
Exemple #6
0
def load_all():
    loader = make_loader()
    for c in ted_contracts():
        load(loader, c)
def load_all():
    loader = make_loader()
    for row in reg_representative:
        load(loader, row)
Exemple #8
0
def load_all():
    loader = make_loader(source_url=EXPERTS_URL)
    for row in exp_group:
        load(loader, row)
Exemple #9
0
def load_all():
    loader = make_loader()
    for c in ted_contracts():
        load(loader, c)