def save_as_header(self, response, **kwargs):
        save_as = kwargs.get('save_as', None)
        if save_as is False:
            return
        file_obj = kwargs.get('file_obj', None)
        if save_as is True or save_as is None:
            filename = os.path.basename(file_obj.path)
        else:
            filename = save_as
        response['Content-Disposition'] = smart_str(
            'attachment; filename=%s' % filename)
Handle start of sequence event
dataset/ETHPy150Open divio/django-filer/filer/server/backends/base.py/ServerBase.save_as_header--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/yaml_listener.py/EventHandler.SequenceStart