1. okfn
  2. wdmmg-ext

Commits

pudo  committed 26e78bc

[load] remove italy loader

  • Participants
  • Parent commits 97cab4b
  • Branches default

Comments (0)

Files changed (2)

File wdmmgext/load/cra2010.py

View file
     # Add population data.
     # TODO: Move population data into a separate data package. After NUTS.
     load_population(pkg.stream('nuts1_population_2006.csv'))
+
     
-

File wdmmgext/load/italype.py

-import os
-from pylons import config
-
-from wdmmg.model import Dataset, Entry, Entity, Classifier
-from wdmmg.lib import times, munge
-from wdmmg.lib.loader import Loader
-
-DATASET_NAME = u'italyregionalaccounts'
-
-def make_loader():
-    """Returns a loader for this dataset"""
-    loader = Loader(DATASET_NAME, ['name'], u"Italian Budget",
-        description=u'''''',
-        currency="EUR")
-    return loader
-
-def aggregate(loader=None):
-    if loader is None:
-       loader = make_loader()
-
-    loader.flush_aggregates()
-    loader.create_view(Dataset, {'name': DATASET_NAME}, name='default', 
-                       label="Spending by Function", 
-                       dimension="dataset", breakdown="function")
-    loader.create_view(Dataset, {'name': DATASET_NAME}, name='region', 
-                       label="Spending by Region", 
-                       dimension="dataset", breakdown="to")
-    loader.create_view(Entity, {'itb': 'region'}, name='default', 
-                       label="Spending by Function", 
-                       dimension="to", breakdown="function")
-    loader.create_view(Classifier, {'taxonomy': 'itb-function'}, name='default', 
-                       label="Spending by Region", 
-                       dimension="function", breakdown="to")
-    loader.compute_aggregates()
-
-def load():
-    loader = make_loader()
-    aggregate(loader)
-