emzed.core.db_backed_dictionary module

class emzed.core.db_backed_dictionary.DbBackedDictionary(parent_model, suffix='meta')[source]

Bases: ImmutableDbBackedDictionary

clear() None.  Remove all items from D.[source]
update([E, ]**F) None.  Update D from mapping/iterable E and F.[source]

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

class emzed.core.db_backed_dictionary.ImmutableDbBackedDictionary(conn, access_name, suffix, init_dict=None)[source]

Bases: UserDict, DbBackedModel

as_dict()[source]
clear() None.  Remove all items from D.[source]
copy(conn, target, source)[source]
get(k[, d]) D[k] if k in D, else d.  d defaults to None.[source]
items() a set-like object providing a view on D's items[source]
keys() a set-like object providing a view on D's keys[source]
property unique_id
update([E, ]**F) None.  Update D from mapping/iterable E and F.[source]

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values() an object providing a view on D's values[source]
emzed.core.db_backed_dictionary.resolve_db_backed_dicts(value)[source]