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

All Samples(26)  |  Call(15)  |  Derive(0)  |  Import(11)

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
        draw = Drawing()
        draw.text((2.7, 0.8), 'y=sin(x)', black)
        draw.text((0.2, -0.8), 'created: ' + asclocaltime(), red)
        draw.lines(((0, 0), (2*pi, 0)), black) # x-axis
        draw.lines(((0, -1), (0, 1)), black) # y-axis

src/w/e/Webware-for-Python-1.1.1/WebKit/Examples/ShowTime.py   Webware-for-Python(Download)
from MiscUtils.Funcs import asclocaltime
from ExamplePage import ExamplePage
 
 
class ShowTime(ExamplePage):

src/w/e/Webware-for-Python-1.1.1/WebKit/ExceptionHandler.py   Webware-for-Python(Download)
 
from MiscUtils import StringIO
from MiscUtils.Funcs import asclocaltime
from WebUtils.HTMLForException import HTMLForException
from WebUtils.Funcs import htmlForDict, htmlEncode
            stderr = sys.stderr
        stderr.write('[%s] [error] WebKit: Error while executing script %s\n'
            % (asclocaltime(self._time), self.servletPathname()))
        traceback.print_exc(file=stderr)
 
        self.writeTitle('MiscInfo')
        info = {
            'time':        asclocaltime(self._time),
            'filename':    self.servletPathname(),
            'os.getcwd()': os.getcwd(),
        except IOError:
            sys.stderr.write('[%s] [error] WebKit: Cannot save error page (%s)\n'
                % (asclocaltime(self._time), filename))
        else:
            return filename
        else:
            err, msg = err.__name__, str(msg)
        logline = (asclocaltime(self._time),
            self.basicServletName(), self.servletPathname(),
            err, msg, errorMsgFilename or '')

src/w/e/Webware-for-Python-1.1.1/WebKit/Request.py   Webware-for-Python(Download)
"""An abstract request"""
 
from MiscUtils import AbstractError
from MiscUtils.Funcs import asclocaltime
from Message import Message
    def timeStamp(self):
        """Return time() as a human readable string, useful for logging and debugging."""
        return asclocaltime(self.time())
 
 

src/w/e/Webware-for-Python-1.1.1/WebKit/Servlet.py   Webware-for-Python(Download)
 
from MiscUtils import AbstractError
from MiscUtils.Funcs import asclocaltime, excstr
 
 
 
        """
        print '[%s] [msg] %s' % (asclocaltime(), message)
 
 

src/w/e/Webware-for-Python-1.1.1/WebKit/Adapters/CGIPlus/CgiPlusAppServer.py   Webware-for-Python(Download)
 
from MiscUtils import StringIO
from MiscUtils.Funcs import asclocaltime
 
import AppServer as AppServerModule
def shutDown(arg1, arg2):
    print "Shutdown Called", asclocaltime()
    if server:
        server.initiateShutdown()
    else:

src/w/e/Webware-for-Python-1.1.1/WebKit/ThreadedAppServer.py   Webware-for-Python(Download)
        FD_CLOEXEC = 1
 
from MiscUtils.Funcs import asclocaltime
from WebUtils.Funcs import requestURI
 
    print "App server has been signaled to shutdown."
    if server and server._running > 2:
        print "Shutting down at", asclocaltime()
        sys.stdout.flush()
        server._running = 2
    print "App server has been signaled to attempt a thread dump."
    print
    print "Thread stack frame dump at", asclocaltime()
    sys.stdout.flush()
    frames = currentFrames()

src/w/e/Webware-for-Python-1.1.1/MiddleKit/Design/SQLGenerator.py   Webware-for-Python(Download)
 
from MiscUtils import AbstractError, CSVParser
from MiscUtils.Funcs import asclocaltime
 
from MiddleKit.Core.ObjRefAttr import objRefJoin
        kv = self.writeKeyValue
        wr('/*\nStart of generated SQL.\n\n')
        kv(out, 'Date', asclocaltime())
        kv(out, 'Python ver', sys.version)
        kv(out, 'Op Sys', os.name)

src/w/e/Webware-for-Python-1.1.1/MiddleKit/Design/MSSQLSQLGenerator.py   Webware-for-Python(Download)
import os
import sys
 
from MiscUtils.Funcs import asclocaltime
 
    def willWriteSQL(self, generator, out):
        wr = out.write
        kv = self.writeKeyValue
        wr('/*\nStart of generated SQL.\n\n')
        kv(out, 'Date', asclocaltime())

src/w/e/Webware-for-Python-1.1.1/MiddleKit/Design/CodeGenerator.py   Webware-for-Python(Download)
from MiscUtils import AbstractError
from MiscUtils.Configurable import Configurable
from MiscUtils.Funcs import asclocaltime
 
from MiddleKit.Core.ModelUser import ModelUser
    def writeInfoItems(self, file):
        wr = self.writeInfoItem
        wr(file, 'Date', asclocaltime())
        wr(file, 'Python ver', sys.version)
        wr(file, 'Op Sys', os.name)

  1 | 2  Next