Update of /cvsroot/audacity/audacity-src/scripts/mw2html_audacity
In directory 
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9354/scripts/mw2html_audacity

Modified Files:
        mw2html.py 
Log Message:
Http links now go to external sites.  No page/source/discussion/history tabbed 
divider.

Index: mw2html.py
===================================================================
RCS file: /cvsroot/audacity/audacity-src/scripts/mw2html_audacity/mw2html.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mw2html.py  29 Nov 2009 17:07:00 -0000      1.11
+++ mw2html.py  29 Nov 2009 18:05:07 -0000      1.12
@@ -187,6 +187,8 @@
   doc = remove_tag(doc, '<div class="portlet" id="p-personal">', '</div>', 
'<div')
   doc = remove_tag(doc, '<div id="p-search" class="portlet">', '</div>','<div')
   doc = remove_tag(doc, '<div class="portlet" id="p-editors">', '</div>', 
'<div')
+  #James also remove the page/discussion/source/history/ div.
+  doc = remove_tag(doc, '<li id="ca-', '</li>', '<li')
   
   #andre special mode
   if config.special_mode:
@@ -835,10 +837,11 @@
       new_urls += [u]
       item.url = url_to_relative(u, url)
     else:
-      if not any( license in u for license in ('creativecommons.org', 
'wxwidgets.org', 'gnu.org', 'mediawiki.org') ):
-        item.url = ''
+      # James, let's keep everything by default (but not follow it).
+      # if not any( license in u for license in ('creativecommons.org', 
'wxwidgets.org', 'gnu.org', 'mediawiki.org') ):
+      #  item.url = ''
       if config.debug:
-        print 'DENIED     - ', u
+        print 'NOT INCLUDED     - ', u
 
   newdoc = htmldata.urljoin(doc, L)
   newdoc = newdoc.replace(BEGIN_COMMENT_REPLACE, '<!--')


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to