コード例 #1
0
ファイル: index.py プロジェクト: yakar/python
def application(environ, start_response):
    import sys
    path = 'YOUR_WWW_ROOT_DIRECTORY'
    if path not in sys.path:
        sys.path.append(path)
    from pyinfo import pyinfo
    output = pyinfo()
    start_response('200 OK', [('Content-type', 'text/html')])
    return [output]
コード例 #2
0
def application(environ, start_response):
    import sys
    path = '/var/www/webroot/ROOT'
    if path not in sys.path:
        sys.path.append(path)
    from pyinfo import pyinfo
    output = pyinfo()
    start_response('200 OK', [('Content-type', 'text/html')])
    yield output.encode('utf-8')
コード例 #3
0
ファイル: pythoninfo.py プロジェクト: Clodo76/osiris-sps
	def onPreRender(self):
		osiris.IMainPage.onPreRender(self)		
		
		self.page.addCss("/" + globalvars.extension.id.getString() + "/css/pythoninfo.css")
				
		document = osiris.XMLDocument()
		root = document.create("modules")
		template = osiris.HtmlXSLControl()
		template.stylesheet = self.loadStylesheet(os.path.join(os.path.dirname(__file__), "pythoninfo.xsl"))
		template.document = document
		self.getArea(osiris.pageAreaContent).controls.add(template)
		
		from pyinfo import pyinfo
		output = pyinfo()    
		output = "<div class=\"pyinfo\">" + output + "</div>"
		self.getArea(osiris.pageAreaContent).controls.add(osiris.HtmlLiteral(output))
コード例 #4
0
ファイル: pythoninfo.py プロジェクト: direclown/osiris-sps
    def onPreRender(self):
        osiris.IMainPage.onPreRender(self)

        self.page.addCss("/" + globalvars.extension.id.getString() +
                         "/css/pythoninfo.css")

        document = osiris.XMLDocument()
        root = document.create("modules")
        template = osiris.HtmlXSLControl()
        template.stylesheet = self.loadStylesheet(
            os.path.join(os.path.dirname(__file__), "pythoninfo.xsl"))
        template.document = document
        self.getArea(osiris.pageAreaContent).controls.add(template)

        from pyinfo import pyinfo
        output = pyinfo()
        output = "<div class=\"pyinfo\">" + output + "</div>"
        self.getArea(osiris.pageAreaContent).controls.add(
            osiris.HtmlLiteral(output))
コード例 #5
0
ファイル: app.py プロジェクト: bill-pixvana/code-deploy
 def get(self):
   self.write(pyinfo.pyinfo())
コード例 #6
0
ファイル: app.py プロジェクト: zeus911/code-deploy
 def get(self):
     self.write(pyinfo.pyinfo())
コード例 #7
0
def info():
    return pyinfo()
コード例 #8
0
ファイル: app.py プロジェクト: hostedon/python-sample
def pyinfopage():
    return pyinfo()