@classmethod
    def filename(cls, fmt, timestamp=None, **filter_kwargs):
        if timestamp is None:
            timestamp = datetime.now()

        state = filter_kwargs.get('state')
        return "%s_%s.%s" % (state.lower(),
            timestamp.strftime(cls.timestamp_format), fmt)
Generate a filename for the output file.
dataset/ETHPy150Open openelections/openelections-core/openelex/base/bake.py/BaseBaker.filename