Update of /cvsroot/freevo/freevo/src/www/htdocs In directory sc8-pr-cvs1:/tmp/cvs-serv12881/htdocs
Added Files: help.rpy plugins.rpy Log Message: start internal help system --- NEW FILE: help.rpy --- #!/usr/bin/python #if 0 /* # ----------------------------------------------------------------------- # index.rpy - The main index to the web interface. # ----------------------------------------------------------------------- # $Id: help.rpy,v 1.1 2003/09/12 20:34:16 dischi Exp $ # # Notes: # Todo: # # ----------------------------------------------------------------------- # $Log: help.rpy,v $ # Revision 1.1 2003/09/12 20:34:16 dischi # start internal help system # # Revision 1.7 2003/09/05 02:48:13 rshortt # Removing src/tv and src/www from PYTHONPATH in the freevo script. Therefore any module that was imported from src/tv/ or src/www that didn't have a leading 'tv.' or 'www.' needed it added. Also moved tv/tv.py to tv/tvmenu.py to avoid namespace conflicts. # # Revision 1.6 2003/07/26 17:15:15 rshortt # Some changes from Mike Ruelle that let you know if your xmltv data is out # of date and also tell you if something is recording (and what it is). # # Revision 1.5 2003/05/29 11:40:42 rshortt # Applied a patch by Mike Ruelle that adds info about disk free, scheduled recordings, and shows the time. # # Revision 1.4 2003/05/22 21:33:23 outlyer # Lots of cosmetic changes: # # o Moved the header/logo into web_types # o Made the error messages all use <h4> instead of <h2> so they look the same # o Removed most <hr> tags since they don't really mesh well with the light blue # o Moved the title into the "status bar" under the logo # # Revision 1.3 2003/05/14 12:31:05 rshortt # Added the standard Freevo graphic and title. # # Revision 1.2 2003/05/14 01:11:20 rshortt # More error handling and notice if the record server is down. # # Revision 1.1 2003/05/12 23:27:11 rshortt # The start of an index page. # # # # ----------------------------------------------------------------------- # 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 # # ----------------------------------------------------------------------- */ #endif import sys, time from www.web_types import HTMLResource, FreevoResource import util, config TRUE = 1 FALSE = 0 class HelpResource(FreevoResource): def _render(self, request): fv = HTMLResource() fv.printHeader('Freevo Help', 'styles/main.css') fv.res += '<p><b>Index</b><ol>' fv.res += '<li><a href="plugins.rpy">Plugin List</a></li>' fv.res += '<br><br>' fv.printLinks() fv.printFooter() fv.res+=('</ul>') return fv.res resource = HelpResource() --- NEW FILE: plugins.rpy --- #!/usr/bin/python #if 0 /* # ----------------------------------------------------------------------- # index.rpy - The main index to the web interface. # ----------------------------------------------------------------------- # $Id: plugins.rpy,v 1.1 2003/09/12 20:34:16 dischi Exp $ # # Notes: # Todo: # # ----------------------------------------------------------------------- # $Log: plugins.rpy,v $ # Revision 1.1 2003/09/12 20:34:16 dischi # start internal help system # # Revision 1.7 2003/09/05 02:48:13 rshortt # Removing src/tv and src/www from PYTHONPATH in the freevo script. Therefore any module that was imported from src/tv/ or src/www that didn't have a leading 'tv.' or 'www.' needed it added. Also moved tv/tv.py to tv/tvmenu.py to avoid namespace conflicts. # # Revision 1.6 2003/07/26 17:15:15 rshortt # Some changes from Mike Ruelle that let you know if your xmltv data is out # of date and also tell you if something is recording (and what it is). # # Revision 1.5 2003/05/29 11:40:42 rshortt # Applied a patch by Mike Ruelle that adds info about disk free, scheduled recordings, and shows the time. # # Revision 1.4 2003/05/22 21:33:23 outlyer # Lots of cosmetic changes: # # o Moved the header/logo into web_types # o Made the error messages all use <h4> instead of <h2> so they look the same # o Removed most <hr> tags since they don't really mesh well with the light blue # o Moved the title into the "status bar" under the logo # # Revision 1.3 2003/05/14 12:31:05 rshortt # Added the standard Freevo graphic and title. # # Revision 1.2 2003/05/14 01:11:20 rshortt # More error handling and notice if the record server is down. # # Revision 1.1 2003/05/12 23:27:11 rshortt # The start of an index page. # # # # ----------------------------------------------------------------------- # 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 # # ----------------------------------------------------------------------- */ #endif import sys, time from www.web_types import HTMLResource, FreevoResource import util, config from helpers.plugins import parse_plugins from helpers.plugins import info_html TRUE = 1 FALSE = 0 class PluginResource(FreevoResource): def _render(self, request): fv = HTMLResource() fv.printHeader('Freevo Plugin List', 'styles/main.css') all_plugins = parse_plugins() fv.res += '<p><b>Index</b><ol>' for p in all_plugins: fv.res += '<li><a href="#%s">%s</a></li>' % (p[0], p[0]) fv.res += '</ol> ' for p in all_plugins: fv.res += '<a name="%s"></a>' % p[0] fv.res += info_html(p[0], [p]) fv.res += '<br><br>' fv.printLinks() fv.printFooter() fv.res+=('</ul>') return fv.res resource = PluginResource() ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog