def fillFields(self, fields):
        """ Fill each field in the template with the values in fields.
        """

        ret = self.content[:]
        for (k, v) in fields.iteritems():
            try:
                ret[self.fields[k]] = v
            except __HOLE__:
                print "Warning: trying to assign value to non-existing field"
                pass

        return ret
dataset/ETHPy150Open hgascon/pulsar/pulsar/core/lens.py/Template.fillFields