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

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)

src/w/e/Webware-for-Python-1.1.1/WebKit/Admin/DumpCSV.py   Webware-for-Python(Download)
    def writeContent(self):
        if not os.path.exists(self._filename):
            self.writeln('<p>File does not exist.</p>')
            return
        table = DataTable(self._filename)
        plural = len(table) != 1 and 's' or ''
        self.writeln('<p>%d row%s</p>' % (len(table), plural))
        self.writeln('<table class="NiceTable" cellpadding="2" cellspacing="2">')
        self._headings = map(lambda col: col.name().strip(), table.headings())
        self._numCols = len(self._headings)
        self.writeln('<tr>')
        for value in self._headings:
            self.writeln('<th>', value, '</th>')

src/w/e/Webware-for-Python-1.1.1/WebKit/Admin/Main.py   Webware-for-Python(Download)
<table cellspacing="2" cellpadding="4" align="center"
style="margin-left:auto;margin-right:auto" class="NiceTable">
<tr class="TopHeading"><th colspan="2">Application Info</th></tr>''')
        for label, value in info:
            self.writeln('<tr><th align="left">%s:</th><td>%s</td></tr>'
                % (label, value))
        self.writeln('</table>')
}
end-parse
-->''' % (app.webKitVersion(), localtime(self.curTime), gmtime(self.curTime)))
 

src/w/e/Webware-for-Python-1.1.1/WebKit/Admin/View.py   Webware-for-Python(Download)
    def writeError(self, message):
        self.writeln('<h3 style="color:red">Error</h3>'
            '<p>%s</p>' % message)
 
    def writeContent(self):

src/w/e/Webware-for-Python-1.1.1/WebKit/Admin/Config.py   Webware-for-Python(Download)
    def writeContent(self):
        self.writeln(htmlForDict(self.application().server().config(),
            topHeading='AppServer'))
        self.writeln(htmlForDict(self.application().config(),
            topHeading='Application'))