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

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

src/w/e/Webware-for-Python-1.1.1/CGIWrapper/_dumpCSV.py   Webware-for-Python(Download)
    def writeBody(self):
        rows = LoadCSV(self._filename)
 
        self.writeln('<table align="center"'
            ' border="0" cellpadding="2" cellspacing="2">')
 
        # Head row gets special formatting
        self._headings = map(lambda name: name.strip(), rows[0])
        self.writeln('<tr>')
        self.writeln('<tr>')
        for value in self._headings:
            self.writeln('<th style="color:white;'
                'font-family:Arial,Helvetica,sans-serif" bgcolor="#101040">',
            value, '</th>')
        self.writeln('</tr>')
        rowIndex = 1
        for row in rows[1:]:
            self.writeln('<tr>')
            colIndex = 0
            for value in row:

src/w/e/Webware-for-Python-1.1.1/WebKit/Admin/LoginPage.py   Webware-for-Python(Download)
    def writeContent(self):
        if self.loginDisabled():
            self.write(self.loginDisabled())
            return
        self.writeln('<div style="margin-left:auto;margin-right:auto;width:20em">'
            '<p>&nbsp;</p>')
        extra = self.request().field('extra', None)
        if extra:
            self.writeln('<p style="color:#333399">%s</p>' % self.htmlEncode(extra))
<td><input type="password" id="password" name="password" value=""></td></tr>
<tr><td colspan="2" align="right"><input type="submit" name="login" value="Login"></td></tr>
</table>''')
        for name, value in self.request().fields().items():
            if name.lower() not in ('username', 'password', 'login', 'logout', 'loginid'):
                if not isinstance(value, list):
                    value = [value]
                for v in value:
                    self.writeln('<input type="hidden" name="%s" value="%s">' % (name, v))
                localtime(time())[:6])) + str(randint(10000, 99999))
            self.session().setValue('loginid', loginid)
        self.writeln('<input type="hidden" name="loginid" value="%s">' % loginid)
        self.writeln('</form>\n<p>&nbsp;</p></div>')
 

src/w/e/Webware-for-Python-1.1.1/CGIWrapper/_admin.py   Webware-for-Python(Download)
            <tr><th>Local time:</th><td>%s</td></tr>
            <tr><th>Global time:</th><td>%s</td></tr>
        </table>''' % (self._wrapper.version(),
        asctime(localtime(curTime)), asctime(gmtime(curTime))))
        self.startMenu()
}
end-parse
-->''' % (self._wrapper.version(), localtime(curTime), gmtime(curTime)))
 
    def startMenu(self):
    def endMenu(self):
        self.writeln('''
        </table>
        </div>''')
 

src/w/e/Webware-for-Python-1.1.1/CGIWrapper/_showConfig.py   Webware-for-Python(Download)
    def writeBody(self):
        self.writeln(htDictionary(self._wrapper.config()))