Update of /cvsroot/freevo/freevo/src/www/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2651/src/www/htdocs
Modified Files: edit_favorite.rpy Log Message: Check result instead. Index: edit_favorite.rpy =================================================================== RCS file: /cvsroot/freevo/freevo/src/www/htdocs/edit_favorite.rpy,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** edit_favorite.rpy 22 Feb 2004 21:04:58 -0000 1.12 --- edit_favorite.rpy 22 Feb 2004 21:41:21 -0000 1.13 *************** *** 12,15 **** --- 12,18 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.13 2004/02/22 21:41:21 rshortt + # Check result instead. + # # Revision 1.12 2004/02/22 21:04:58 gsbarbieri # Fix crash when server returns error message instead of program. *************** *** 131,137 **** (result, prog) = ri.findProg(chan, start) if prog: - if isinstance( prog, unicode ): - prog = String( prog ) print 'PROG: %s' % prog --- 134,146 ---- (result, prog) = ri.findProg(chan, start) + if not result: + fv.printHeader('Edit Favorite', 'styles/main.css') + fv.res += '<h4>ERROR: no program found on % at %</h4>' % (chan, start) + fv.printSearchForm() + fv.printLinks() + fv.printFooter() + return fv.res + if prog: print 'PROG: %s' % prog ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog