Source

wdmmg / wdmmg / model / entry.py


from mongo import *

class Entry(Base):
    
    @property
    def context(self): 
        return self.get('dataset', {}).get('name')
    
    id = dictproperty('_id')
    name = dictproperty('name')
    label = dictproperty('label')
    
    currency = dictproperty('currency')