Ejemplo n.º 1
0
"""
starts a medusa web server with Quixote, serving an adamo database
"""
if __name__ == "__main__":

    import os
    from quixote import enable_ptl
    enable_ptl()

    from lino.quix import default
    from lino.quix.serve import startServer

    from lino.schemas.sprl import demo

    #import webbrowser

    db = demo.startup(verbose=True)

    #webbrowser.open("http://localhost:8080",new=1)

    # serve.main(db)
    namespace = default.DatabaseNamespace(db)
    #default.setDatabase(db)
    configPath = os.path.dirname(default.__file__)
    startServer(namespace, db.getLabel(), configPath)
    #startServer(default,db.getLabel())
Ejemplo n.º 2
0
"""

starts a Medusa server with Quixote, serving a WebMan module on Lino's
`docs` directory.

"""

if __name__ == "__main__":
	
	import os
	import webbrowser
	from lino.webman.webman import WebModule
	from lino.quix.serve import startServer

	from lino.quix import serve

	servername = "localhost"

	webbrowser.open("http://%s:8080" % servername,new=1)

	srcdir = os.path.join(os.path.dirname(__file__),"..","docs")

	m = WebModule(srcdir)

	startServer(m,servername,configPath=m.getSourcePath())



Ejemplo n.º 3
0
"""
starts a medusa web server with Quixote, serving an adamo database
"""
if __name__ == "__main__":
	
	import os
	from quixote import enable_ptl
	enable_ptl()

	from lino.quix import default 
	from lino.quix.serve import startServer

	from lino.schemas.sprl import demo

	#import webbrowser

	db = demo.startup(verbose=True)

	#webbrowser.open("http://localhost:8080",new=1)

	# serve.main(db)
	namespace = default.DatabaseNamespace(db)
	#default.setDatabase(db)
	configPath = os.path.dirname(default.__file__)
	startServer(namespace,db.getLabel(),configPath)
	#startServer(default,db.getLabel())