Revision: 748
          http://rpy.svn.sourceforge.net/rpy/?rev=748&view=rev
Author:   lgautier
Date:     2009-08-15 18:25:04 +0000 (Sat, 15 Aug 2009)

Log Message:
-----------
finally moved the home-grown templating system to
a third-party templating system (Jinja2)

Modified Paths:
--------------
    trunk/htdocs/news.data

Added Paths:
-----------
    trunk/htdocs/build.py
    trunk/htdocs/templates/
    trunk/htdocs/templates/base.html
    trunk/htdocs/templates/index.html
    trunk/htdocs/templates/news.html
    trunk/htdocs/templates/rpy2.html
    trunk/htdocs/templates/rpy2_bugs.html
    trunk/htdocs/templates/rpy2_download.html

Removed Paths:
-------------
    trunk/htdocs/index.data
    trunk/htdocs/rpy2.data
    trunk/htdocs/rpy2_bugs.data
    trunk/htdocs/rpy2_download.data

Added: trunk/htdocs/build.py
===================================================================
--- trunk/htdocs/build.py                               (rev 0)
+++ trunk/htdocs/build.py       2009-08-15 18:25:04 UTC (rev 748)
@@ -0,0 +1,32 @@
+from jinja2 import Environment, FileSystemLoader
+
+to_render = ('index.html',
+             'rpy2.html',
+             'rpy2_download.html',
+             'rpy2_bugs.html')
+
+newsfile = file("news.data")
+newsdata = []
+for row in newsfile:
+    if row.startswith('<!-- title: News -->'):
+        newsdata.append([])
+        continue
+    newsdata[-1].append(row)
+
+for i, item in enumerate(newsdata):
+    newitem = {}
+    newitem['title'] = item.pop(0)[len('title: '):]
+    newitem['date'] = item.pop(0)[len('date: '):]
+    newitem['content'] = ''.join(item)
+    newsdata[i] = newitem
+
+env = Environment(loader=FileSystemLoader('templates'))
+
+for tpl in to_render:
+    print(tpl)
+    template = env.get_template(tpl)
+
+    f = file(tpl, 'w')
+    f.write(template.render(latestnews = newsdata[:8], newslist = newsdata))
+    f.close()
+


Property changes on: trunk/htdocs/build.py
___________________________________________________________________
Added: svn:eol-style
   + native

Deleted: trunk/htdocs/index.data
===================================================================
--- trunk/htdocs/index.data     2009-08-08 06:57:32 UTC (rev 747)
+++ trunk/htdocs/index.data     2009-08-15 18:25:04 UTC (rev 748)
@@ -1,20 +0,0 @@
-<!-- page-title: RPy home page -->
-<!-- title: About -->
-
-
-  <p>
-    <strong>RPy</strong> is a very simple, yet robust, <a 
href="http://www.python.org/";>Python</a> interface to 
-    the <a href="http://www.r-project.org/";>R Programming Language</a>.        
 It can
-    manage all kinds of R objects and can execute arbitrary R functions
-    (including the graphic functions). All errors from the R language
-    are converted to Python exceptions.         Any module installed for the
-    R system can be used from within Python.
-  </p>
-
-  <p>Two flavours are available: <a href="rpy.html">rpy</a> and
-<a href="rpy2.html">rpy2</a>.
-  </p>
-
-  </div>
-    
-</td>
\ No newline at end of file

Modified: trunk/htdocs/news.data
===================================================================
--- trunk/htdocs/news.data      2009-08-08 06:57:32 UTC (rev 747)
+++ trunk/htdocs/news.data      2009-08-15 18:25:04 UTC (rev 748)
@@ -1,95 +1,33 @@
-<!-- page-title: RPy news page -->
 <!-- title: News -->
-<div class="news">
-  <a name="2009-07-04">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>Release 2.0.6</b></td>
-       <td><div class="news-date">2009-07-04</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
+title: Release 2.0.6
+date: 2009-07-04
 
-  <div class="news-body">
-    <h3>
-    Release 2.0.6
-    </h3>
       <p>
        The release 2.0.6 does not have user-visible changes. Changes
         adressed issues when buildin under OS X with framework, and under 
win32.
         Win32 can again be downloaded from the Sourceforge page.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
-
 <!-- title: News -->
-<div class="news">
-  <a name="2009-06-29">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>Win32 binaries for rpy-1.0.3 / R-2.9</b></td>
-       <td><div class="news-date">2009-06-29</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
+title: Win32 binaries for rpy-1.0.3
+date: 2009-06-29
 
-  <div class="news-body">
-    <h3>
-    Win32 binaries for rpy-1.0.3 / R-2.9
-    </h3>
       <p>
       The title says it all.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
-
 <!-- title: News -->
-<div class="news">
-  <a name="2009-06-21">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>Release 2.0.5</b></td>
-       <td><div class="news-date">2009-06-21</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
+title: Release 2.0.5
+date: 2009-06-21
 
-  <div class="news-body">
-    <h3>
-    Release 2.0.5
-    </h3>
       <p>
        The release 2.0.5 is mostly fixing two infrequent bugs causing a crash.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
-
 <!-- title: News -->
-<div class="news">
-  <a name="2009-04-29">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>Release 2.0.4</b></td>
-       <td><div class="news-date">2009-04-29</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
+title: Release 2.0.4
+date: 2009-04-29
 
-  <div class="news-body">
-    <h3>
-    Release 2.0.4
-    </h3>
       <p>
        The release 2.0.4 is fixing a memory leak present
        when build R vectors from existing Python sequences,
@@ -97,124 +35,46 @@
        of changes is in the documentation.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
-
 <!-- title: News -->
-<div class="news">
-  <a name="2009-02-15">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>Release 2.0.3</b></td>
-       <td><div class="news-date">2009-02-15</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
+title: Release 2.0.3
+date: 2009-02-15
 
-  <div class="news-body">
-    <h3>
-    Release 2.0.3
-    </h3>
       <p>
        The release 2.0.3 is fixing limitations in the low-level interface,
         and introduces a few minor additions.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
-
 <!-- title: News -->
-<div class="news">
-  <a name="2009-01-31">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>Bugs fixed in release 2.0.2</b></td>
-       <td><div class="news-date">2009-01-31</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
+title: Release 2.0.2
+date: 2009-01-31
 
-  <div class="news-body">
-    <h3>
-    Bugs fixed in release 2.0.2
-    </h3>
       <p>
        The release 2.0.2 is fixing some of the few bugs found
         in 2.0.1
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
-
 <!-- title: News -->
-<div class="news">
-  <a name="2008-12-31">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>Rpy2 at bitbucket</b></td>
-       <td><div class="news-date">2008-12-31</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-
-  <div class="news-body">
-    <h3>
-       RPy2 at bitbucket
+title: RPy2 at bitbucket
+date: 2008-12-31
     </h3>
       <p>
-      The primary repository for Rpy2's source code is now at 
+      The primary repository for RPy2's source code is now at 
       <a href="http://www.bitbucket.org/lgautier/rpy2/";>bitbucket</a>.
       Propagation of the changes to SF's SVN will be organised soon.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
+<!-- title: News -->
+title: RPy in Debian
+date: 2008-12-28
 
-<div class="news">
-  <a name="2008-12-28">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy2 in Debian</b></td>
-       <td><div class="news-date">2008-12-28</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-
-  <div class="news-body">
-    <h3>
-       RPy2 in Debian
-    </h3>
       <p>
        Thanks to Dirk Eddelbuettel, rpy2 is now part of Debian.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
+<!-- title: News -->
+title: RPy 2.0.1
+date: 2008-12-20
 
-<div class="news">
-  <a name="2008-12-20">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 2.0.1</b></td>
-       <td><div class="news-date">2008-12-20</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-
-  <div class="news-body">
-    <h3>
-       Rpy - 2.0.1
-    </h3>
       <p>
       Bug-fix Relase for <i>rpy2-2.0</i>. The source
       package then pre-built binaries for win32 are being uploaded.
@@ -224,26 +84,10 @@
       The online documentation is <a href="rpy2/doc/html">here</a>.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
+<!-- title: News -->
+title: RPy 2.0.0
+date: 2008-12-13
 
-
-<div class="news">
-  <a name="2008-12-13">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 2.0.0</b></td>
-       <td><div class="news-date">2008-12-13</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-
-  <div class="news-body">
-    <h3>
-       Rpy - 2.0.0
-    </h3>
       <p>
       Relase ! <i>rpy2-2.0.0</i> is out. The source
       package and pre-built binaries for win32 were made available few days 
ago.
@@ -253,26 +97,10 @@
       The online documentation is <a href="rpy2/doc/html">here</a>.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
+<!-- title: News -->
+title: RPy 2.0.0rc1
+date: 2008-10-31
 
-
-<div class="news">
-  <a name="2008-10-31">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 2.0.0rc1</b></td>
-       <td><div class="news-date">2008-10-31</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-
-  <div class="news-body">
-    <h3>
-       Rpy - 2.0.0rc
-    </h3>
       <p>
       The release candidate for <i>rpy2-2.0.0</i> is out. The source
       package is available on the sourceforge page.
@@ -283,26 +111,11 @@
       The online documentation is <a href="rpy2/doc/html">here</a>.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
 
+<!-- title: News -->
+title: RPy 2.0.0beta1
+date: 2008-10-13
 
-<div class="news">
-  <a name="2008-10-13">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 2.0.0beta1</b></td>
-       <td><div class="news-date">2008-10-13</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-
-  <div class="news-body">
-    <h3>
-       Rpy - 2.0.0b1
-    </h3>
       <p>
       The beta release for <i>rpy2</i> is out. The source
       package is available on the sourceforge page.
@@ -313,25 +126,10 @@
       The online documentation is <a href="rpy2/doc/html">here</a>.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
+<!-- title: News -->
+title: RPy 2.0.0alpha3
+date: 2008-08-25
 
-<div class="news">
-  <a name="2008-08-03">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 2.0.0alpha3</b></td>
-       <td><div class="news-date">2008-08-25</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-
-  <div class="news-body">
-    <h3>
-       Rpy - 2.0.0a3
-    </h3>
       <p>
       A new alpha release for <i>rpy2</i> is out. The source
       package is available on the sourceforge page.
@@ -343,77 +141,31 @@
       The online documentation is <a href="rpy2/doc/html">here</a>.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
 
-<div class="news">
-  <a name="2008-08-03">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 2.0.0alpha2</b></td>
-       <td><div class="news-date">2008-08-03</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
+<!-- title: News -->
+title: RPy 2.0.0alpha2
+date: 2008-08-03
 
-  <div class="news-body">
-    <h3>
-       Rpy - 2.0.0a2
-    </h3>
       <p>
       The third alpha release for <i>rpy2</i> is out. The source
       package, and pre-built binaries for win32 are available on
       the sourceforge page.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
 
+<!-- title: News -->
+title: RPy 2.0.0alpha1
+date: 2008-07-06
 
-<div class="news">
-  <a name="2008-07-06">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 2.0.0alpha1</b></td>
-       <td><div class="news-date">2008-07-06</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-  
-  <div class="news-body">
-    <h3>
-       Rpy - 2.0.0a1
-    </h3>
       <p>
       The second alpha release for <i>rpy2</i> is out. The source
       package, and pre-built binaries for win32 are available.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
+<!-- title: News -->
+title: New RPy Documentation Wiki
+date: 2008-04-28
 
-<div class="news">
-  <a name="2008-04-28">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>New RPy Documentation Wiki</b></td>
-       <td><div class="news-date">2008-04-28</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-  
-  <div class="news-body">
-    
-    <h3>
-       New RPy Documentation Wiki
-    </h3>
-
       <p>
        Thanks to hard work by John Reidel, the RPy manual has been converted 
into a Wiki.  
        This should make it easer for everyone (especially end users) to 
contribute to 
@@ -424,29 +176,11 @@
        Take a look at <a 
href="http://rpy.wiki.sourceforge.net/Manual+-+Top";>http://rpy.wiki.sourceforge.net/Manual+-+Top</a>.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
 
+<!-- title: News -->
+title: RPy 1.0.2 now available
+date: 2008-04-10
 
-
-<div class="news">
-  <a name="2008-04-10">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 1.0.2 now available</b></td>
-       <td><div class="news-date">2008-04-10</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-  
-  <div class="news-body">
-    
-    <h3>
-      RPy 1.0.2 Released
-    </h3>
-
       <p>
        Hello RPy'ers:
       </p>
@@ -492,29 +226,10 @@
 </pre>
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
+<!-- title: News -->
+title: RPy 1.0.1 now available
+date: 2007-11-29
 
-
-
-<div class="news">
-  <a name="2007-11-29">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 1.0.1 now available</b></td>
-       <td><div class="news-date">2007-11-29</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-
-  <div class="news-body">
-    
-    <h3>
-      RPy 1.0.0 Released
-    </h3>
-
       <p>
        Hello RPy'ers:
       </p>
@@ -537,29 +252,11 @@
 </pre>
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
 
+<!-- title: News -->
+title: RPy 1.0.0 now available
+date: 2007-11-15
 
-
-<div class="news">
-  <a name="2007-11-15">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 1.0.0 now available</b></td>
-       <td><div class="news-date">2007-11-15</div></td>
-      </tr>
-    </table>
-  </div>
-  </a>
-
-  <div class="news-body">
-    
-    <h3>
-      RPy 1.0.0 Released
-    </h3>
-
       <p>
        Hello RPy'ers:
       </p>
@@ -602,27 +299,10 @@
 </pre>
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
+<!-- title: News -->
+title: RPy 1.0 RC 3 now available
+date: 2007-06-26
 
-
-
-<div class="news">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 1.0 RC 3 now available</b></td>
-       <td><div class="news-date">2007-06-26</div></td>
-      </tr>
-    </table>
-  </div>
-  
-  <div class="news-body">
-    
-    <h3>
-      RPy 1.0 RC 3 Released
-    </h3>
-
       <p>
        Hello RPy'ers:
       </p>
@@ -644,28 +324,11 @@
        RC3 also introduces support for NumPy.
       </p>
 
-  </div> <!-- news body -->
-</div> <!-- news -->
 
+<!-- title: News -->
+title: RPy 0.99 now available
+date: 2006-03-15
 
-
-
-<div class="news">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 0.99.0 now available</b></td>
-       <td><div class="news-date">2006-03-15</div></td>
-      </tr>
-    </table>
-  </div>
-  
-  <div class="news-body">
-    
-    <h3>
-      RPy 0.99.0 Released
-    </h3>
-
       <p>
        Hello RPy'ers:
       </p>
@@ -745,53 +408,22 @@
        robust.
       </li>
     </ul>
-    
-  </div> <!-- news body -->
-</div> <!-- news -->
 
 
-<div class="news">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy now using Subversion</b></td>
-       <td><div class="news-date">2006-02-28</div></td>
-      </tr>
-    </table>
-  </div>
-  
-  <div class="news-body">
-    
-    <h3>
-      RPy Now using Subversion
-    </h3>
-    
+<!-- title: News -->
+title: RPy now using Subversion
+date: 2006-02-28
+
     The RPy source code has been migrated from CVS to
     Subversion. See the SF <a
     href="http://sourceforge.net/svn/?group_id=48422";>Project
     Subversion</a> page for access information.
              
-  </div> <!-- news body -->
-</div> <!-- news -->
 
+<!-- title: News -->
+title: RPy 0.4.6 now available
+date: 2005-07-28
 
-<div class="news">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 0.4.6 now available</b></td>
-       <td><div class="news-date">2005-07-28</div></td>
-      </tr>
-    </table>
-  </div>
-  
-  <div class="news-body">
-    
-    <h3>
-      RPY 0.4.6 Released
-    </h3>
-    
-    
     <h4>
       Bug fixes 
     </h4>
@@ -827,27 +459,10 @@
     
     This should be the last release for some time. ;^)
              
-  </div> <!-- news body -->
-</div> <!-- news -->
-
-
-<div class="news">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 0.4.5 now available</b></td>
-       <td><div class="news-date">2005-07-25</div></td>
-      </tr>
-    </table>
-  </div>
-  
-  <div class="news-body">
+<!-- title: News -->
+title: RPy 0.4.5 now available
+date: 2005-07-25
     
-    <h3>
-      RPY 0.4.5 Released
-    </h3>
-    
-    
     <h4>
       New features 
     </h4>
@@ -882,27 +497,10 @@
       </li>
     </ul>
     
-  </div> <!-- news body -->
-</div> <!-- news -->
-
-
-<div class="news">
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 0.4.4 now available</b></td>
-       <td><div class="news-date">2005-07-23</div></td>
-      </tr>
-    </table>
-  </div>
-  
-  <div class="news-body">
-    
-    <h3>
-      RPY 0.4.4 Released
-    </h3>
-    
-    
+<!-- title: News -->
+title: RPy 0.4.4 now available
+date: 2005-07-23
+        
     <h4>
       New features 
     </h4>
@@ -944,28 +542,11 @@
        most welcome.
       </li>
     </ul>
-    
-  </div> <!-- news body -->
-</div> <!-- news -->
 
-<div class="news">
+<!-- title: News -->
+title: RPy 0.4.5 now available
+date: 2005-07-22
 
-  <div class="news-header">
-    <table width="100%" cellpadding="0" cellspacing="0">
-      <tr>
-       <td><b>RPy 0.4.3 now available</b></td>
-       <td><div class="news-date">July 22, 2005</div></td>
-      </tr>
-    </table>
-  </div>
-  
-  <div class="news-body">
-
-
-    <h3>
-      RPY 0.4.3 Released
-    </h3>
-
     <h4>
       New features
     </h4>
@@ -1105,30 +686,12 @@
              </li>
            </ul>
 
-  </div>
-</div>
 
+<!-- title: News -->
+title: RPy 0.4.2 now available
+date: 2005-05-23
 
 
-
-
-
-
-<!----------------------------------------->
-       <p>
-               <div class="news">
-
-                       <div class="news-header">
-       <table width="100%" cellpadding="0" cellspacing="0">
-               <tr>
-                       <td><b>RPy 0.4.2 now available</b></td>
-                       <td><div class="news-date">May 23, 2005</div></td>
-               </tr>
-       </table>
-                       </div>
-
-                       <div class="news-body">
-
 <H3>New features:</H3>
 <UL>
        <LI> Add headers to enable building for R 2.1.0. </LI>
@@ -1143,27 +706,12 @@
 Source bundles and for RPy 0.4.2 are now available from the <a
 href="download.html"> Downloads</a> page.       Windows binaries will follow.
 
-                       </div>
-               </div>
 
 
+<!-- title: News -->
+title: RPy 0.4.0 now available
+date: 2004-11-08
 
-
-       <p>
-               <div class="news">
-
-                       <div class="news-header">
-       <table width="100%" cellpadding="0" cellspacing="0">
-               <tr>
-                       <td><b>RPy 0.4.0 now available</b></td>
-                       <td><div class="news-date">Nov 08, 2004</div></td>
-               </tr>
-       </table>
-                       </div>
-
-                       <div class="news-body">
-
-
 <H3>New features:</H3>
 <UL>
        <LI> More fixes for R 2.0.0
@@ -1176,94 +724,37 @@
  now available from the         <a href="download.html">
 Downloads</a> page.
 
-                       </div>
-               </div>
 
+<!-- title: News -->
+title: RPy 0.3.6 now available
+date: 2004-11-01
 
-       <p>
-               <div class="news">
-
-                       <div class="news-header">
-       <table width="100%" cellpadding="0" cellspacing="0">
-               <tr>
-                       <td><b>RPy 0.4.0 now available</b></td>
-                       <td><div class="news-date">Nov 08, 2004</div></td>
-               </tr>
-       </table>
-                       </div>
-
-                       <div class="news-body">
-
-
-<H3>New features:</H3>
-<UL>
-       <LI> More fixes for R 2.0.0
-
-       <LI> R header files for R 1.8.0 through R 2.0.0 are now included with
-               rpy.    This should make it easier to build.
-</UL>
-
-Source bundles and a Windows binary installer for RPy 0.4.0 are
- now available from the         <a href="download.html">
-Downloads</a> page.
-
-                       </div>
-               </div>
-
-       <p>
-               <div class="news">
-
-                       <div class="news-header">
-       <table width="100%" cellpadding="0" cellspacing="0">
-               <tr>
-                       <td><b>RPy 0.3.6 Windows binaries for R 2.0.0</b></td>
-                       <td><div class="news-date">Nov 01, 2004</div></td>
-               </tr>
-       </table>
-                       </div>
-
-                       <div class="news-body">
-
+      <p>
        A binary for RPy 0.3.6 built against R 2.0.0 is now
        available on the <a href="download.html">Downloads</a> page.
-                       </div>
-               </div>
+      </p>
 
 
-       <p>
-               <div class="news">
+<!-- title: News -->
+title: RPy 0.3.5 binaries
+date: 2004-09-16
 
-                       <div class="news-header">
-       <table width="100%" cellpadding="0" cellspacing="0">
-               <tr>
-                       <td><b>RPy 0.3.5 Windows binaries for R 1.9.1</b></td>
-                       <td><div class="news-date">Sep 16, 2004</div></td>
-               </tr>
-       </table>
-                       </div>
-
-                       <div class="news-body">
-
+      <p>
        A binary for RPy 0.3.5 built against R 1.9.1 is now
        available on the <a href="download.html">Downloads</a> page.
-                       </div>
-               </div>
+      </p>
 
+<!-- title: News -->
+title: RPy 0.3.5 binaries
+date: 2004-02-27
 
-       <p>
-               <div class="news">
-
-                       <div class="news-header">
        <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                        <td><b>RPy 0.3.5 Windows binaries</b></td>
                        <td><div class="news-date">Feb 27, 2004</div></td>
                </tr>
        </table>
-                       </div>
 
-                       <div class="news-body">
-
        RPy 0.3.5 binaries for Windows have been provided by Matjaz
                                Kukar and are available for download.    He has 
also made some
                                additional changes to make rpy more stable 
under windows.
@@ -1271,46 +762,25 @@
        Get it from the
                                <a href="download.html">Downloads</a>
        page.
-                       </div>
-               </div>
 
+<!-- title: News -->
+title: RPy 0.3.5 released
+date: 2004-02-16
 
-       <p>
-               <div class="news">
-
-                       <div class="news-header">
-       <table width="100%" cellpadding="0" cellspacing="0">
-               <tr>
-                       <td><b>RPy 0.3.5 released</b></td>
-                       <td><div class="news-date">Feb 16, 2004</div></td>
-               </tr>
-       </table>
-                       </div>
-
-                       <div class="news-body">
-
+      <p>
        RPy 0.3.5 contains changes to allow building
        Mac OS X as well as some bug fixes for Windows.
-       <p/>
+
        Get RPy 0.3.5 from the
                                <a href="download.html">Downloads</a>
        page.
-                       </div>
-               </div>
+      </p>
 
-       <p>
-               <div class="news">
 
-                       <div class="news-header">
-       <table width="100%" cellpadding="0" cellspacing="0">
-               <tr>
-                       <td><b>RPy 0.3.4 Windows Binaries Available</b></td>
-                       <td><div class="news-date">Feb 3, 2004</div></td>
-               </tr>
-       </table>
-                       </div>
+<!-- title: News -->
+title: RPy 0.3.4 Windows Binaries Available
+date: 2004-02-03
 
-                       <div class="news-body">
        <p>
                Windows binaries for Rpy 0.3.4 have been provided by Matjaz
                Kukar and are available for download.    Get them from the <a
@@ -1326,52 +796,31 @@
                </strong>
        </p>
 
-                       </div>
-               </div>
 
-       <p>
+<!-- title: News -->
+title: RPy 0.3.3 Released
+date: 2004-01-15
 
-
-               <div class="news">
-
-                       <div class="news-header">
-       <table width="100%" cellpadding="0" cellspacing="0">
-               <tr>
-                       <td><b>RPy 0.3.3 released: Now works with R 
1.8.X</b></td>
-                       <td><div class="news-date">Jan 15, 2004</div></td>
-               </tr>
-       </table>
-                       </div>
-
-                       <div class="news-body">
+      <p>
        RPy 0.3.3 contains changes that allow it to run properly with
        R versions 1.8.0 and later.      Further, the Windows and Unix
        source codes have been merged.  This should make it easier to
        fix bugs and add features.
-                               <p>
-                               Get RPy 0.3.3 from the <a 
href="download.html">Downloads</a> page.
-                       </div>
-               </div>
+      </p>
+      <p>
+       Get RPy 0.3.3 from the <a href="download.html">Downloads</a> page.
+      </p>
 
-       <p>
+<!-- title: News -->
+title: Gregory Warnes joins as a new project manager.
+date: 2004-01-08
 
-               <div class="news">
-
-                       <div class="news-header">
-       <table width="100%" cellpadding="0" cellspacing="0">
-               <tr>
-                       <td><b>Gregory Warnes joins as a new project 
manager.</b></td>
-                       <td><div class="news-date">Jan, 8, 2004</div></td>
-               </tr>
-       </table>
-                       </div>
-
-                       <div class="news-body">
+      <p>
        <a href="gregory.r.war...@pfizer.com">Gregory R. Warnes</a> has
        joined the RPy project as a project manager.
-       <p>
+      </p>
+      <p>
                His first project is to get RPy working with
                R 1.8.X.        Next he will focus on combining the Unix and 
Windows source
                trees.
-                       </div>
-               </div>
+      </p>

Deleted: trunk/htdocs/rpy2.data
===================================================================
--- trunk/htdocs/rpy2.data      2009-08-08 06:57:32 UTC (rev 747)
+++ trunk/htdocs/rpy2.data      2009-08-15 18:25:04 UTC (rev 748)
@@ -1,55 +0,0 @@
-<!-- page-title: rpy2 -->
-<!-- title: rpy2 -->
-
-<div class="news-body">
-    <h3>
-       About
-    </h3>
-<p>
-  <i>rpy2</i> is a redesign and rewrite of <i>rpy</i>. 
-It is providing a low-level interface to R, a proposed high-level
-interface, including wrappers to graphical libraries, 
-as well as R-like structures and functions.
-</p>
-</div>
-
-<div class="news-body">
-    <h3>
-       Documentation
-    </h3>
-<p>
-Most of the features are documented in
-the <a href="rpy2/doc/html/index.html">rpy2 documentation</a>, as
-well as in Python docstrings.
-Instructions such as how to download or install it are also
-available in the rpy2 documentation.
-</p>
-
-<p>
-A release 2.1 is worked on, and in the meanwhile
-irregular snapshots of the 
-<a href="http://rpy.sourceforge.net/rpy2/doc-dev/html/index.html";>
-documentation for the development branch</a> are made available.
-The development branch is adressing shortcomings in the higher-level
-interface, while infortunately introducing API-breaking changes
-when compared to the 2.0.x series. Porting code from rpy2-2.0
-to rpy2-2.1 is easy, it is nevertheless advised to check the section Changes 
in that
-documentation 
-(<a 
href="http://rpy.sourceforge.net/rpy2/doc-dev/html/changes.html#release-2-1-dev";>here</a>).
-</p>
-
-</div>
-
-
-<div class="news-body">
-    <h3>
-       Contact
-    </h3>
-<p>
-The rpy mailing-list should be used for most of the questions.
-</p>
-<p>
-Use the <a href="contacts.html">contacts</a> page otherwise.
-</p>
-
-</div>

Deleted: trunk/htdocs/rpy2_bugs.data
===================================================================
--- trunk/htdocs/rpy2_bugs.data 2009-08-08 06:57:32 UTC (rev 747)
+++ trunk/htdocs/rpy2_bugs.data 2009-08-15 18:25:04 UTC (rev 748)
@@ -1,21 +0,0 @@
-<!-- page-title: rpy2 -->
-<!-- title: rpy2 -->
-
-<div class="news-body">
-
-<p>
-Bug reports should preferaly be entered as issues
-on the <a href="http://bitbucket.org/lgautier/rpy2/issues/";>bitbucket 
page</a>. 
-</p>
-
-<p>
-Although stable and functional, rpy2 could benefit from improvements
-on the design (particularly for the high-level interface). Wishes
-for changes/improvement can be added to the issues page, with the
-recommendation to also notify the new entry on the mailing-list
-(more people read the list than the issues page).  
-</p>
-
-
-
-</div>

Deleted: trunk/htdocs/rpy2_download.data
===================================================================
--- trunk/htdocs/rpy2_download.data     2009-08-08 06:57:32 UTC (rev 747)
+++ trunk/htdocs/rpy2_download.data     2009-08-15 18:25:04 UTC (rev 748)
@@ -1,69 +0,0 @@
-<!-- page-title: rpy2 -->
-<!-- title: rpy2 -->
-
-<div class="news-body">
-
-<div class="news-body">
-    <h3>
-       Download
-    </h3>
-
-<h4>Released versions</h4>
-
-<h5>Manual installs</h5>
-
-<p>
-Source and binary packages are available at: 
-</p>
-<ul>
-<li><a href="http://pypi.python.org/pypi/rpy2/";>Pypi</a></li>
-<li>
-<a 
href="http://sourceforge.net/project/showfiles.php?group_id=48422&package_id=277454";>Sourceforge</a>.
-</li>
-</ul>
-
-<p>
-The <a href="rpy2/doc/html/overview.html#installation">documentation</a>
-for the released version has further instructions regarding the installation
-process.
-</p>
-
-</ul>
-
-<h5>Less-manual installs</h5>
-
-Fetching and installing the latest release from Pypi
-can be done by running 
-<a href="http://peak.telecommunity.com/DevCenter/EasyInstall";>easy_install</a> 
-<pre>
-easy_install install rpy2
-</pre>
-
-<p>
-<i>rpy2</i> is also packaged for a number of systems
-(Debian/Ubuntu, RedHat/Fedora, openSUSE, Gentoo, Fink).
-</p>
-
-
-<h4>Development versions</h4>
-
-<p>
-The primary repository the rpy2 source is now on Mercurial, and at bitbucket:
-<a href="http://www.bitbucket.org/lgautier/rpy2/";>
-http://www.bitbucket.org/lgautier/rpy2/
-</a>.
-</p>
-
-<p>
-The <a href="rpy2/doc-dev/html/overview.html#installation">documentation
-for the development version</a> has further instructions 
-regarding the installation process.
-</p>
-
-<p>
-For the time being, the source in Sourceforge's SVN is 
-<u>no longer up-to-date</u>.
-</p>
-
-
-</div>

Added: trunk/htdocs/templates/base.html
===================================================================
--- trunk/htdocs/templates/base.html                            (rev 0)
+++ trunk/htdocs/templates/base.html    2009-08-15 18:25:04 UTC (rev 748)
@@ -0,0 +1,143 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml";>
+
+  <head>
+    <title>{{ page_title }}</title>
+    <link rel="stylesheet" type="text/css" href="style.css" />
+  </head>
+  <body>
+
+  <!-- Logo -->
+  <table class="box">
+    <tbody>
+    <tr>
+      <td align="center" valign="top" class="left"> <!-- bgcolor="White" -->
+        <a href="index.html"><img src="graphics/rpy_logo.png" alt="RPy" /></a>
+      </td>
+      <td>
+      </td>
+      <td class="page_head_center">
+  <h3> A simple and efficient access to R from Python</h3>
+      </td>
+    </tr>
+    </tbody>
+  </table>
+  <!-- Document table -->
+  <table class="box">
+  <tbody>
+  <tr>
+    <td class="left">
+
+
+<table class="box">
+    <tbody>
+  <!-- Navigation bar -->
+  <tr>
+  <td>
+  <div class="header">
+    <strong class="title">Sections</strong>
+  </div>
+  <ul class="menu">
+    <li><a href="maillist.html">Mail List</a></li>
+    <li><a href="news.html">News</a></li>
+    <li><a href="http://sourceforge.net/projects/rpy";>SourceForge</a></li>
+    <li><a href="contacts.html">Contacts</a></li>
+  </ul>
+  <b>rpy</b>
+  <ul class="menu">
+    <li><a href="rpy.html">About</a></li>
+    <li><a href="bugs.html">Bugs</a></li>
+    <li><a href="svn.html">Code repository</a></li>
+    <li><a href="download.html">Download</a></li>
+    <li><a href="documentation.html">Documentation</a></li>
+    <li><a href="rpy_demo.html">Demo</a></li>
+    <li><a href="faq.html">FAQ</a></li>
+    <li><a href="todo.html">To do</a></li>
+    <li><a href="http://rpy.wiki.sourceforge.net/";>Wiki</a></li>
+  </ul>
+  <b>rpy2</b>
+  <ul class="menu">
+    <li><a href="rpy2.html">About</a></li>
+    <li><a href="rpy2_bugs.html">Bugs</a></li>
+    <li><a href="rpy2_download.html">Download</a></li>
+  </ul>
+  </td>
+  </tr>
+  <!-- Exits table -->
+
+  <tr>
+  <td>
+  <div class="header">
+    <strong class="title">Exits</strong>
+  </div>
+  <ul class="menu">
+    <li><a href="http://www.python.org/";>Python</a></li>
+    <li><a href="http://www.r-project.org/";>R language</a></li>
+    <li><a href="http://www.omegahat.org/RSPython";>RSPython</a></li>
+  </ul>
+  </td>
+  </tr>
+  <!-- Acknowledgements table -->
+  <tr>
+  <td>
+  <div class="header">
+    <strong class="title">Acknowledgement&nbsp;</strong>
+  </div>
+  This site is hosted by<br/>
+  <center>
+  <a href="http://sourceforge.net/projects/rpy";>
+    <img class="border" 
src="http://sourceforge.net/sflogo.php?group_id=rpy&amp;type=1"; 
alt="SourceForge.net Logo" />
+  </a>
+  </center>
+
+  </td>
+  </tr>
+  </tbody>
+  </table>
+  <!-- END Acknowledgements table -->
+
+             
+  </td>
+  <td valign="top" width="60%" class="central">
+
+  <div class="central">
+  
+  <center>
+  <h2>{{ title }}</h2>
+  </center>
+
+  {% block main %}
+
+  {% endblock %}
+
+  </td>
+  <td class="right">
+  <!-- News table -->
+  <table class="box">
+  <tbody>
+  <tr>
+  <td>
+    <div class="header">
+    <strong class="title">News</strong>
+    </div>
+  <ul class="menu">
+  {% for item in latestnews %}
+  <li><a href="news.html#{{ item.id }}">
+  {{ item.title }}</a><br/>
+  <i>({{ item.date }})</i><br> <br>
+  </li>
+  {% endfor %}
+  </td>
+  </tr>
+  </tbody>
+  </table>
+         <br/>
+  </td>
+  </tr>
+  </tbody>
+  </table>
+    <!-- END Document table -->
+
+  </body>
+</html>

Added: trunk/htdocs/templates/index.html
===================================================================
--- trunk/htdocs/templates/index.html                           (rev 0)
+++ trunk/htdocs/templates/index.html   2009-08-15 18:25:04 UTC (rev 748)
@@ -0,0 +1,20 @@
+{% extends "base.html" %}
+
+{% block main %}
+  <p>
+    <strong>RPy</strong> is a very simple, yet robust, <a 
href="http://www.python.org/";>Python</a> interface to 
+    the <a href="http://www.r-project.org/";>R Programming Language</a>.        
 It can
+    manage all kinds of R objects and can execute arbitrary R functions
+    (including the graphic functions). All errors from the R language
+    are converted to Python exceptions.         Any module installed for the
+    R system can be used from within Python.
+  </p>
+
+  <p>Two flavours are available: <a href="rpy.html">rpy</a> and
+<a href="rpy2.html">rpy2</a>.
+  </p>
+
+  </div>
+    
+</td>
+{% endblock %}

Added: trunk/htdocs/templates/news.html
===================================================================
--- trunk/htdocs/templates/news.html                            (rev 0)
+++ trunk/htdocs/templates/news.html    2009-08-15 18:25:04 UTC (rev 748)
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+
+{% block main %}
+ 
+{% for item in news %}
+
+<div class="news">
+  <a name="{{ item.id }}">
+  <div class="news-header">
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr>
+       <td><b>{{ item.title }}</b></td>
+       <td><div class="news-date">{{ item.date }}</div></td>
+      </tr>
+    </table>
+  </div>
+  </a>
+
+  <div class="news-body">
+    {{ item.content }}
+  </div> 
+</div>
+{% endfor %}
+
+{% endblock %}

Added: trunk/htdocs/templates/rpy2.html
===================================================================
--- trunk/htdocs/templates/rpy2.html                            (rev 0)
+++ trunk/htdocs/templates/rpy2.html    2009-08-15 18:25:04 UTC (rev 748)
@@ -0,0 +1,52 @@
+{% extends "base.html" %}
+
+{% block main %}
+<div class="news-body">
+    <h3>About</h3>
+<p>
+  <i>rpy2</i> is a redesign and rewrite of <i>rpy</i>. 
+It is providing a low-level interface to R, a proposed high-level
+interface, including wrappers to graphical libraries, 
+as well as R-like structures and functions.
+</p>
+</div>
+
+<div class="news-body">
+    <h3>Documentation</h3>
+<p>
+Most of the features are documented in
+the <a href="rpy2/doc/html/index.html">rpy2 documentation</a>, as
+well as in Python docstrings.
+Instructions such as how to download or install it are also
+available in the rpy2 documentation.
+</p>
+
+<p>
+A release 2.1 is worked on, and in the meanwhile
+irregular snapshots of the 
+<a href="http://rpy.sourceforge.net/rpy2/doc-dev/html/index.html";>
+documentation for the development branch</a> are made available.
+The development branch is adressing shortcomings in the higher-level
+interface, while infortunately introducing API-breaking changes
+when compared to the 2.0.x series. Porting code from rpy2-2.0
+to rpy2-2.1 is easy, it is nevertheless advised to check the section Changes 
in that
+documentation 
+(<a 
href="http://rpy.sourceforge.net/rpy2/doc-dev/html/changes.html#release-2-1-dev";>here</a>).
+</p>
+
+</div>
+
+
+<div class="news-body">
+    <h3>Contact</h3>
+<p>
+The rpy mailing-list should be used for most of the questions.
+</p>
+<p>
+Use the <a href="contacts.html">contacts</a> page otherwise.
+</p>
+
+</div>
+
+{% endblock %}
+

Added: trunk/htdocs/templates/rpy2_bugs.html
===================================================================
--- trunk/htdocs/templates/rpy2_bugs.html                               (rev 0)
+++ trunk/htdocs/templates/rpy2_bugs.html       2009-08-15 18:25:04 UTC (rev 
748)
@@ -0,0 +1,22 @@
+{% extends "rpy2.html" %}
+
+{% block main %}
+<div class="news-body">
+
+<p>
+Bug reports should preferaly be entered as issues
+on the <a href="http://bitbucket.org/lgautier/rpy2/issues/";>bitbucket 
page</a>. 
+</p>
+
+<p>
+Although stable and functional, rpy2 could benefit from improvements
+on the design (particularly for the high-level interface). Wishes
+for changes/improvement can be added to the issues page, with the
+recommendation to also notify the new entry on the mailing-list
+(more people read the list than the issues page).  
+</p>
+
+
+
+</div>
+{% endblock %}

Added: trunk/htdocs/templates/rpy2_download.html
===================================================================
--- trunk/htdocs/templates/rpy2_download.html                           (rev 0)
+++ trunk/htdocs/templates/rpy2_download.html   2009-08-15 18:25:04 UTC (rev 
748)
@@ -0,0 +1,69 @@
+{% extends "rpy2.html" %}
+
+{% block main %}
+<div class="news-body">
+    <h3>Download</h3>
+
+<h4>Released versions</h4>
+
+<h5>Manual installs</h5>
+
+<p>
+Source and binary packages are available at: 
+</p>
+<ul>
+<li><a href="http://pypi.python.org/pypi/rpy2/";>Pypi</a></li>
+<li>
+<a 
href="http://sourceforge.net/project/showfiles.php?group_id=48422&package_id=277454";>Sourceforge</a>.
+</li>
+</ul>
+
+<p>
+The <a href="rpy2/doc/html/overview.html#installation">documentation</a>
+for the released version has further instructions regarding the installation
+process.
+</p>
+
+</ul>
+
+<h5>Less-manual installs</h5>
+
+Fetching and installing the latest release from Pypi
+can be done by running 
+<a href="http://peak.telecommunity.com/DevCenter/EasyInstall";>easy_install</a> 
+<pre>
+easy_install install rpy2
+</pre>
+
+<p>
+<i>rpy2</i> is also packaged for a number of systems
+(Debian/Ubuntu, RedHat/Fedora, openSUSE, Gentoo, Fink).
+</p>
+
+
+<h4>Development versions</h4>
+
+<p>
+The primary repository the rpy2 source is now on Mercurial, and at bitbucket:
+<a href="http://www.bitbucket.org/lgautier/rpy2/";>
+http://www.bitbucket.org/lgautier/rpy2/
+</a>.
+</p>
+
+<p>
+The <a href="rpy2/doc-dev/html/overview.html#installation">documentation
+for the development version</a> has further instructions 
+regarding the installation process.
+</p>
+
+<p>
+For the time being, the source in Sourceforge's SVN is 
+<u>no longer up-to-date</u>.
+</p>
+
+
+</div>
+
+
+{% endblock %}
+


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
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
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to