Models

The application’s model objects

class wdmmg.model.Repository
class wdmmg.model.mongo.Base
classmethod by_id(id)
copy()
classmethod find(*a, **kw)
classmethod find_one(*a, **kw)
save(**kwargs)
to_index_dict()
to_query_dict(sep='.')

Flatten down a dictionary with some smartness.

to_ref()
to_ref_dict()
wdmmg.model.mongo.classproperty
wdmmg.model.mongo.db()
wdmmg.model.mongo.dictproperty(name)
wdmmg.model.mongo.drop_db()
wdmmg.model.mongo.make_connection(host, port)
class wdmmg.model.dataset.Dataset
add_region(region)
currency
description
classmethod distinct_regions()
classmethod find_by_region(region)
get_regions()
id
label
name
class wdmmg.model.entry.Entry
amount
context
currency
flags
id
label
classmethod meta_keys_for_dataset(dataset_name)
name
class wdmmg.model.entity.Entity
id
label
name
class wdmmg.model.classifier.Classifier
context
description
id
label
level
name
parent
taxonomy

Previous topic

API Documentation

Next topic

wdmmg.lib.loader.Loader - a class to use in data loader

This Page