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

All Samples(37)  |  Call(22)  |  Derive(0)  |  Import(15)

src/w/e/Webware-for-Python-1.1.1/WebKit/Examples/ImageDemo.py   Webware-for-Python(Download)
from math import sin, pi
 
from MiscUtils import StringIO
from MiscUtils.Funcs import asclocaltime
from ExamplePage import ExamplePage
        def png(self):
            s = StringIO()
            self._image.writePng(s)
            return s.getvalue()
 
        def png(self):
            s = StringIO()
            self._image.save(s, 'png')
            return s.getvalue()
 

src/w/e/Webware-for-Python-1.1.1/WebKit/Examples/Colorize.py   Webware-for-Python(Download)
import os
import sys
 
from MiscUtils import StringIO
from WebKit.Page import Page
            return
        from DocSupport import py2html
        myout = StringIO()
        stdout = sys.stdout
        sys.stdout = myout

src/w/e/Webware-for-Python-1.1.1/WebKit/Examples/AjaxPage.py   Webware-for-Python(Download)
import random
 
from MiscUtils import StringIO
 
from ExamplePage import ExamplePage as BaseClass
                        cmd = str(method(*args))
                    except Exception:
                        err = StringIO()
                        traceback.print_exc(file=err)
                        e = err.getvalue()

src/w/e/Webware-for-Python-1.1.1/MiscUtils/PickleRPC.py   Webware-for-Python(Download)
    zlib = None
 
from MiscUtils import StringIO
 
 
    def loads(self, str):
        """Unpickle a string."""
        return self.load(StringIO(str))
 
 

src/w/e/Webware-for-Python-1.1.1/WebKit/Adapters/CGIPlus/CgiPlusAppServer.py   Webware-for-Python(Download)
from time import time
 
from MiscUtils import StringIO
from MiscUtils.Funcs import asclocaltime
 
    def mainloop(self, timeout=1):
        import wasd
        wasd.init()
        stderr_ini = sys.stderr
        sys.stderr = StringIO()
            # block until next request
            wasd.cgi_info("")
            sys.stderr = StringIO()
 
    def shutDown(self):
def main(args):
    function = run
    workDir = None
    sys.stdout = StringIO()
    for arg in args[:]:

src/w/e/Webware-for-Python-1.1.1/PSP/PSPParser.py   Webware-for-Python(Download)
"""
 
from MiscUtils import StringIO
 
from PSPUtils import checkAttributes, PSPParserException
    def __init__(self, ctxt):
        self._reader = ctxt.getReader()
        self._writer = ctxt.getServletWriter()
        self._handler = None
        self.cout = StringIO() # for dumping HTML that none of the check wants
        if data: # make sure there's something there
            self._handler.handleCharData(start, stop, data)
        self.cout = StringIO()
 
    @checker

src/w/e/Webware-for-Python-1.1.1/MiscUtils/M2PickleRPC.py   Webware-for-Python(Download)
"""
 
from MiscUtils import StringIO
from PickleRPC import Transport
from M2Crypto import SSL, httpslib, m2urllib
    def parse_response(self, f):
        """Workaround M2Crypto issue mentioned above."""
        sio = StringIO()
        while 1:
            chunk = f.read()
    def parse_response_gzip(self, f):
        """Workaround M2Crypto issue mentioned above."""
        sio = StringIO()
        while 1:
            chunk = f.read()

src/w/e/Webware-for-Python-1.1.1/install.py   Webware-for-Python(Download)
from operator import itemgetter
 
from MiscUtils import StringIO
from MiscUtils.PropertiesObject import PropertiesObject
 
        self.printMsg('Creating %s...' % targetName)
        stdout = sys.stdout
        sys.stdout = StringIO()
        try:
            py2html.main((None, '-stdout', '-files', filename))
        try:
            stdout = sys.stdout
            sys.stdout = StringIO()
            try:
                try:

src/w/e/Webware-for-Python-1.1.1/WebUtils/WDGValidator.py   Webware-for-Python(Download)
 
from WebUtils.Funcs import htmlEncode
from MiscUtils import StringIO
 
 
        return ''
 
    result = StringIO()
    result.write('<table style="background-color: #ffffff">'
        '<tr><td colspan="2">\n')

src/w/e/Webware-for-Python-1.1.1/WebKit/JSONRPCServlet.py   Webware-for-Python(Download)
    print "Get it from http://cheeseshop.python.org/pypi/simplejson"
 
from MiscUtils import StringIO
from HTTPContent import HTTPContent
 
                    self.writeResult(method(*params))
                except Exception:
                    err = StringIO()
                    traceback.print_exc(file=err)
                    e = err.getvalue()

  1 | 2  Next