sed -i s/\"/\'/g projects/* && rm print()s in pub*
authorDylan Lloyd <dylan@psu.edu>
Wed, 23 Mar 2011 01:52:38 +0000 (21:52 -0400)
committerDylan Lloyd <dylan@psu.edu>
Wed, 23 Mar 2011 01:52:38 +0000 (21:52 -0400)
This fixes a bug introduced in commit f9f5098 that broke the frontpage. The problem was that the method used to force the project page to show up searches for class='notes' but they were ""s in error. It's kind of a crude method in the first place, but it works.

The print statement in ./publish_projects was from debugging a while ago and served no purpose.

projects/drawcss.html
projects/i_like_pandora.html
projects/peepshow.html
projects/readoo.html
projects/repthis.html
projects/youtube_backup.html
publish_projects.py

index e5f8bdd..dcabc0c 100644 (file)
@@ -1,17 +1,17 @@
-        <div class="exhibit" id="drawcss_">
-          <h1 id="drawcss_title"><a href=
-          "drawcss">drawcss</a></h1><span id=
-          "drawcss_entry">writing markup for website wireframes
+        <div class='exhibit' id='drawcss_'>
+          <h1 id='drawcss_title'><a href=
+          'drawcss'>drawcss</a></h1><span id=
+          'drawcss_entry'>writing markup for website wireframes
           always seemed silly.<br>
 
           <br>
           this is a tool to draw them (it's not done).<br>
           <br>
-          <a href="#show" id="showdivs" name="showdivs">check
+          <a href='#show' id='showdivs' name='showdivs'>check
           out</a> the invisible elements this page is built on.<br>
           <br>
           then get <a href=
-          "http://github.com/nospampleasemam/drawcss">the
+          'http://github.com/nospampleasemam/drawcss'>the
           code</a>.</span>
 
         </div>
index 0a615cc..597ffec 100644 (file)
@@ -1,8 +1,8 @@
-        <div class="exhibit" id="i_like_pandora_">
-          <h1 id="i_like_pandora_title"><a href=
-          "https://github.com/nospampleasemam/i_like_pandora">i_like_pandora</a></h1><span id="i_like_pandora_entry">searches
-          <a href="http://youtube.com">youtube</a> for what you
-          like on <a href="http://pandora.com">pandora</a>.<br>
+        <div class='exhibit' id='i_like_pandora_'>
+          <h1 id='i_like_pandora_title'><a href=
+          'https://github.com/nospampleasemam/i_like_pandora'>i_like_pandora</a></h1><span id='i_like_pandora_entry'>searches
+          <a href='http://youtube.com'>youtube</a> for what you
+          like on <a href='http://pandora.com'>pandora</a>.<br>
 
           <br>
           then it downloads the first video.<br>
@@ -11,7 +11,7 @@
           <br>
           <br>
           the code is free (as in freedom), <a href=
-          "http://github.com/nospampleasemam/i_like_pandora">here</a>.<br>
+          'http://github.com/nospampleasemam/i_like_pandora'>here</a>.<br>
 
           </span>
         </div>
index 08156c5..a306b61 100644 (file)
@@ -1,16 +1,16 @@
-        <div class="exhibit" id="peepshow_">
-          <h3 id="peepshow_title_1"><a href=
-          "foxy-addons/peepshow/peepshow.xpi">foxy-addons/</a></h3>
+        <div class='exhibit' id='peepshow_'>
+          <h3 id='peepshow_title_1'><a href=
+          'foxy-addons/peepshow/peepshow.xpi'>foxy-addons/</a></h3>
 
-          <h1 id="peepshow_title_2"><a href=
-          "foxy-addons/peepshow/peepshow.xpi">peepshow</a></h1><span id="peepshow_entry">a
+          <h1 id='peepshow_title_2'><a href=
+          'foxy-addons/peepshow/peepshow.xpi'>peepshow</a></h1><span id='peepshow_entry'>a
           <a href=
-          "http://www.mozilla.com/en-US/products/download.html">firefox</a>
+          'http://www.mozilla.com/en-US/products/download.html'>firefox</a>
           addon, to load linked images inline (like on <a href=
-          "http://reddit.com/r/pics">reddit</a>).<br>
+          'http://reddit.com/r/pics'>reddit</a>).<br>
 
           <br>
           here's the <a href=
-          "http://github.com/nospampleasemam/peepshow/">repo</a>
+          'http://github.com/nospampleasemam/peepshow/'>repo</a>
           for the source code.</span>
         </div>
index 1c1919c..46b32f5 100644 (file)
@@ -1,13 +1,13 @@
-        <div class="exhibit" id="readoo_">
-          <h1 id="readoo_title"><a href=
-          "http://github.com/nospampleasemam/readoo">readoo</a></h1><span id="readoo_entry">helps
+        <div class='exhibit' id='readoo_'>
+          <h1 id='readoo_title'><a href=
+          'http://github.com/nospampleasemam/readoo'>readoo</a></h1><span id='readoo_entry'>helps
           you find search keywords to target.<br>
           <br>
           it reads your IIS logs, and finds successful keywords
           worth focusing on.<br>
           <br>
           it's not done yet! here's the <a href=
-          "http://github.com/nospampleasemam/readoo">source
+          'http://github.com/nospampleasemam/readoo'>source
           code</a>.</span>
 
         </div>
index c395d49..919365f 100644 (file)
@@ -1,17 +1,17 @@
-               <div class="exhibit" id="repthis_">
-          <span id="reprap_entry">3D printing is a form of additive
+               <div class='exhibit' id='repthis_'>
+          <span id='reprap_entry'>3D printing is a form of additive
           manufacturing technology where a three dimensional object
           is created by successive layers of material. [1]:<a href=
-          "http://repthis.info/">http://en.wikipedia.org/wiki/3D_printing</a><br>
+          'http://repthis.info/'>http://en.wikipedia.org/wiki/3D_printing</a><br>
 
           <br>
-          <a href="http://reprap.org">reprap</a> is a <a href=
-          "http://en.wikipedia.org/wiki/Free_software">free</a>
+          <a href='http://reprap.org'>reprap</a> is a <a href=
+          'http://en.wikipedia.org/wiki/Free_software'>free</a>
 
           desktop 3D printer capable of printing plastic
           objects.<br>
           <br>
-          <a href="http://repthis.info">repthis.info</a> is the
+          <a href='http://repthis.info'>repthis.info</a> is the
           account of a friend and I learning to build our own.<br>
           <br></span>
         </div>
index 8f7767e..9526722 100644 (file)
@@ -1,16 +1,16 @@
-        <div class="exhibit" id="youtube_backup_">
+        <div class='exhibit' id='youtube_backup_'>
 
-          <h1 id="youtube_backup_title"><a href=
-          "https://github.com/nospampleasemam/youtube_backup">youtube_backup</a></h1><span id="youtube_backup_entry">backs
-          up all the <a href="http://youtube.com">youtube</a>
+          <h1 id='youtube_backup_title'><a href=
+          'https://github.com/nospampleasemam/youtube_backup'>youtube_backup</a></h1><span id='youtube_backup_entry'>backs
+          up all the <a href='http://youtube.com'>youtube</a>
           videos in a users favorites list.<br>
           <br>
           this is my fork of the <a href=
-          "https://github.com/hagnas/youtube_backup">original
+          'https://github.com/hagnas/youtube_backup'>original
           youtube_backup</a> which adds asynchronous alerts after
           successful downloads.<br>
           <br>
 
           it's written in <a href=
-          "http://www.python.org/">python</a>.</span>
+          'http://www.python.org/'>python</a>.</span>
         </div>
index 7e5535c..da77e39 100755 (executable)
@@ -11,7 +11,6 @@ domain = config.get('database', 'domain')
 user = config.get('database', 'user')
 password = config.get('database', 'password').replace('"', '')
 database = config.get('database', 'database')
-print domain, user, password, database
 cursor = db.connect(domain, user, password, database).cursor()
 
 notes = os.listdir('projects')