Duncan Webb wrote:
Evan Hisey wrote:
John-
Sounds like what happends when you go to the wrong webserver port.
This is a bug, I really need to get documented and submitted. try
addiing :8080 to the end of the server name. Also make sure that the
local_conf.py has the webserver set up right.
Evan
On 9/22/07, John Molohan <[EMAIL PROTECTED]> wrote:
Hi,
All I get now when I browse to my freevo site is this:
Directory listing for /
Filename Content type Content encoding
downloadurl.py [text/plain]
downloadurl.pyc [application/x-python-code]
Did I mess something up or is there a problem with the current svn?
Looks like setup.py is copying some files that it should not be
Check /usr/lib/python2.*/site-packages/freevo/www/htdocs, it should not
exist and then remove it and restart the webserver.
Duncan
Hmm. I tried that and found the two dowloadurl files there and deleted
them. Then it just gave me a 'Directory listing for /' page and it was
empty. I then deleted the empty htdocs directory and now get the
attached file when I browse to http://freevo:8080
I recently did huge updates to my distro that brought me from python2.4
to python2.5 I'm guessing that this could be related to that? I had to
fudge my way through a lot of freevo related errors after that upgrade
but everthing else seems to be working fine, do I have an issue with
Twisted?
John
#!/usr/bin/python # -*- coding: iso-8859-1 -*- #
----------------------------------------------------------------------- #
index.rpy - The main index to the web interface. #
----------------------------------------------------------------------- # $Id:
index.rpy 9562 2007-05-11 18:31:49Z duncan $ # # Notes: # Todo: # #
----------------------------------------------------------------------- #
Freevo - A Home Theater PC framework # Copyright (C) 2002 Krister Lagerstrom,
et al. # Please see the file freevo/Docs/CREDITS for a complete list of
authors. # # This program is free software; you can redistribute it and/or
modify # it under the terms of the GNU General Public License as published by #
the Free Software Foundation; either version 2 of the License, or # (at your
option) any later version. # # This program is distributed in the hope that it
will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty
of MER- # CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details. # # You should have received a copy of the
GNU General Public License along # with this program; if not, write to the Free
Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA # # -----------------------------------------------------------------------
import sys, time import tv.record_client from www.web_types import
HTMLResource, FreevoResource import util, config import util.tv_util as tv_util
TRUE = 1 FALSE = 0 class IndexResource(FreevoResource): def _render(self,
request): fv = HTMLResource() fv.printHeader(_('Welcome'),
'styles/main.css',selected=_('Home')) fv.res += '
\n' fv.res += '
'+( _('Freevo Web Status as of %s') % \ time.strftime('%B %d ' +
config.TV_TIMEFORMAT, time.localtime()) ) +'
' (server_available, schedule) = tv.record_client.connectionTest() if not
server_available: fv.res += '
'+_('Notice')+': '+_('The recording server is down.')+'
\n' else: fv.res += '
'+_('The recording server is up and running.')+'
\n' listexpire = tv_util.when_listings_expire() if listexpire == 1: fv.res += '
'+_('Notice')+': '+_('Your listings expire in 1 hour.')+'
\n' elif listexpire < 12: fv.res += '
'+_('Notice')+': '+( _('Your listings expire in %s hours.') % listexpire ) +'
\n' else: fv.res += '
'+_('Your listings are up to date.')+'
\n' (got_schedule, recordings) = tv.record_client.getScheduledRecordings() if
got_schedule: progl = recordings.getProgramList().values() f = lambda a, b:
cmp(a.start, b.start) progl.sort(f) for prog in progl: try: if
prog.isRecording: fv.res += '
'+_('Now Recording %s.')+'
\n' % prog.title break except: pass num_sched_progs = len(progl) if
num_sched_progs == 1: fv.res += '
'+_('One program scheduled to record.')+'
\n' elif num_sched_progs > 0: fv.res += '
'+(_('%i programs scheduled to record.') % num_sched_progs )+'
\n' else: fv.res += '
'+_('No programs scheduled to record.')+'
\n' else: fv.res += '
'+_('No programs scheduled to record.')+'
\n' diskfree = _('%i of %i Mb free in %s') % ( ((
util.freespace(config.TV_RECORD_DIR) / 1024) / 1024),
((util.totalspace(config.TV_RECORD_DIR) /1024) /1024), config.TV_RECORD_DIR)
fv.res += '
' + diskfree + '
\n' fv.res += '
' fv.printWebRemote() fv.printSearchForm() #fv.printLinks() fv.printFooter()
return String( fv.res ) resource = IndexResource() -------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users