# $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_reader.py 1048 2008-01-30 01:19:07Z kurt $
"""
Contains the SnapStream PipeReader class.
PipeReader is an implementation of the SnapStream Reader interface for a SelectablePipe. Such an object
will be used to interface to a WSGI request.
"""
from snaplogic.common.snapstream.reader import Reader
class PipeReader(Reader):
def __init__(self, pipe, content_type, mode, url='Unspecified', view_name='Unspecified'):
super(PipeReader, self).__init__(url, view_name)
self._pipe = pipe
self.content_type = content_type
self.stream_mode = mode
|