[email protected]
[Top] [All Lists]

[Medusa-dev] Medusa or Quixote configuration

Subject: [Medusa-dev] Medusa or Quixote configuration
From: Eduardo Biano
Date: Mon, 4 Jul 2005 02:35:04 -0700 PDT
Hi,

I got hold of a documentation that helped solved the
problem. I was able to run Medusa but i encountered
another problem. 
The problem is, that the web pages won't display the
stylesheet, javascript and graphics. It cannot find
the   referenced (href) files. I changed the links to
the files but to no avail. I don't know if I missed
something in Medusa configuration. Server code:

---------------------------------------
#!/usr/bin/env python

try:
    from medusa import http_server, xmlrpc_handler
except ImportError:
    print '\n' + '='*50
    print 'medusa/ package not found; install it.'
    print '='*50
    raise
        
import asyncore
from quixote.publish import Publisher
from quixote.server import medusa_http
from quixote import enable_ptl
enable_ptl()

# Server that exposes the links demo program on port
8080
PORT = 8080    # [1]

print 'Now serving the qxdemo.links demo on port %i' %
PORT
server = http_server.http_server('', PORT)
publisher = Publisher('quixote.hrmo')   
publisher.config.debug_log = "/tmp/debug"    
publisher.config.error_log = "/tmp/error"
publisher.setup_logs()
dh = medusa_http.QuixoteHandler(publisher,
'/quixote/hrmo/medusa-server.py', server)    
server.install_handler(dh)
asyncore.loop()

-------------------------------------------

Please give some hints. Thanks again.

Cheers!
Ed Biano  



                
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com
_______________________________________________
Medusa-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/medusa-dev

<Prev in Thread] Current Thread [Next in Thread>