(self, obj)
Mutates a dictionary object to fill in more fields based
        on the current object.
Mutates a dictionary object to fill in more fields based
        on the current object.
Mutates a dictionary object to fill in more fields based on the current object .
def fill_dict(self, obj):
        """
        Mutates a dictionary object to fill in more fields based
        on the current object.
        """
        fnames = self.get_files()
        if fnames:
            obj['value'] = fnames[0]
        else:
            obj['value'] = 'MISSING'

        obj['files'] = fnames
        obj['toc'] = self.get_path()
        obj['file_list'] = self.get_path()
        obj['id'] = self.id
        obj['name'] = self.name
        obj['uid'] = self.uid
        obj['data_dir'] = self.get_data_dir()
        obj['project_dir'] = self.get_project_dir()
        obj['data_url'] = self.url()
def fill_dict ( self , obj ) : fnames = self . get_files ( ) if fnames : obj [ 'value' ] = fnames [ 0 ] else : obj [ 'value' ] = 'MISSING' obj [ 'files' ] = fnames obj [ 'toc' ] = self . get_path ( ) obj [ 'file_list' ] = self . get_path ( ) obj [ 'id' ] = self . id obj [ 'name' ] = self . name obj [ 'uid' ] = self . uid obj [ 'data_dir' ] = self . get_data_dir ( ) obj [ 'project_dir' ] = self . get_project_dir ( ) obj [ 'data_url' ] = self . url ( )