Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(0)  |  Derive(5)  |  Import(0)
virtual superclass for things which may occur in a stream

src/w/h/whiff-1.1/whiff/argcomponent.py   whiff(Download)
class Invocation(stream.StreamComponent):
    "superclass for shared behaviors for arg-like components"
    tag_name = None
    argtag = "using"
    def __init__(self, argId, envDict, argumentsDict, cgi_sets, id_sets, root_application=None,

src/w/h/whiff-1.1/whiff/textcomponent.py   whiff(Download)
class TextComponent(stream.StreamComponent):
    def __init__(self, text):
        self.text = text
    def __repr__(self):
        return "TextComponent"+repr((self.file_path, self.text.strip()[:20]+"..."))

src/w/h/whiff-1.1/whiff/namecomponent.py   whiff(Download)
class NameComponent(stream.StreamComponent):
    def __init__(self, name, page, use_prefix=False):
        # page default is not parsed as json even if use_prefix is set...
        # name could be indexed by json sequence such as 'data[1,"hello"]'
        self.name = name

src/w/h/whiff-1.1/whiff/idcomponent.py   whiff(Download)
class IdComponent(stream.StreamComponent):
    def __init__(self, name):
        self.name = name
    def __repr__(self):
        return "IdComponent"+repr((self.name, self.file_path))

src/w/h/whiff-1.1/whiff/cgicomponent.py   whiff(Download)
class CgiComponent(stream.StreamComponent):
    # ???? default_stream is never used???
    def __init__(self, name, default_stream=None):
        self.name = name
        self.default_stream = default_stream