Update of /cvsroot/freevo/freevo/src/www
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv322/src/www

Modified Files:
        server.py 
Log Message:
make the webserver work again

Index: server.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/www/server.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** server.py   18 Dec 2004 18:18:40 -0000      1.4
--- server.py   18 Dec 2004 19:05:08 -0000      1.5
***************
*** 68,72 ****
          if os.path.splitext(path)[1]:
              for htdocs in self.server.htdocs:
!                 path = os.path.abspath(htdocs + path)
                  if not path.startswith(htdocs):
                      print 'Sandbox violation: %s' % path
--- 68,72 ----
          if os.path.splitext(path)[1]:
              for htdocs in self.server.htdocs:
!                 path = os.path.abspath(htdocs + self.path)
                  if not path.startswith(htdocs):
                      print 'Sandbox violation: %s' % path
***************
*** 94,98 ****
  
              self.wfile.writefd(f)
-             print f.tell()
              return None
              
--- 94,97 ----
***************
*** 234,255 ****
          self.handler(conn, addr, self)
          return True
- 
- 
- 
- 
- 
- ### FREEVO SPECIFIC STUFF ###
- 
- if __name__=="__main__":
-     import config
- 
-     # init notifier
-     notifier.init( notifier.GENERIC )
- 
-     # launch the server on port 8080
-     Server('', config.WWW_PORT, RequestHandler, ['src/www', 'www'],
-            [os.path.abspath('src/www/htdocs')])
-     print "HTTPServer running on port %s" % str(config.WWW_PORT)
- 
-     # loop
-     notifier.loop()
--- 233,234 ----



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to