'cannot do this until we are setting metadata'

def regenerate_primary_file(self, dataset):

    bn = dataset.metadata.base_name
    flist = os.listdir(dataset.extra_files_path)
    rval = [('<html><head><title>Files    for    Composite    Dataset    %s</title></head><p/>Comprises    the    following    files:<p/><ul>' % bn)]
    for (i, fname) in enumerate(flist):
        sfname = os.path.split(fname)[(-1)]
        rval.append(('<li><a    href="%s">%s</a>' % (sfname, sfname)))
    rval.append('</ul></html>')
    with open(dataset.file_name, 'w') as f:
        f.write('\n'.join(rval))
        f.write('\n')
