# $SnapHashLicense:
#
# SnapLogic - Open source data services
#
# Copyright (C) 2008, SnapLogic, Inc. All rights reserved.
#
# See http://www.snaplogic.org for more information about
# the SnapLogic project.
#
# This program is free software, distributed under the terms of
# the GNU General Public License Version 2. See the LEGAL file
# at the top of the source tree.
#
# "SnapLogic" is a trademark of SnapLogic, Inc.
#
#
# $
# $Id: pipe_writer.py 965 2008-01-23 00:17:42Z kurt $
"""
Contains the SnapStream PipeWriter class.
PipeWriter is an implementation of the SnapStream Writer interface for a SelectablePipe. Such an object
will be used to interface to a WSGI request.
"""
from snaplogic.common.snapstream.writer import Writer
class PipeWriter(Writer):
def __init__(self, pipe, content_type, mode, url='Unspecified', view_name='Unspecified'):
super(PipeWriter, self).__init__(url, view_name)
self._pipe = pipe
self.content_type = content_type
self.stream_mode = mode
|