[Blends-commit] r1826 - in blends/trunk: websites/inc webtools webtools/templates

Debian Pure Blends Subversion Commit noreply at alioth.debian.org
Fri Aug 21 21:25:37 UTC 2009


Author: tille
Date: Fri Aug 21 21:25:36 2009
New Revision: 1826
URL: http://svn.debian.org/viewsvn/blends?rev=1826&view=rev

Log:
Display publications


Modified:
   blends/trunk/websites/inc/style.css
   blends/trunk/webtools/blendstasktools.py
   blends/trunk/webtools/templates/tasks.xhtml

Modified: blends/trunk/websites/inc/style.css
URL: http://svn.debian.org/viewsvn/blends/blends/trunk/websites/inc/style.css?rev=1826&view=diff&r1=1826&r2=1825&p1=blends/trunk/websites/inc/style.css&p2=blends/trunk/websites/inc/style.css
==============================================================================
--- blends/trunk/websites/inc/style.css	(original)
+++ blends/trunk/websites/inc/style.css	Fri Aug 21 21:25:36 2009
@@ -290,6 +290,18 @@
        font-weight:bold;
 }
 
+.published {
+       padding: 2px 0px 2px 0px;
+       margin-top: 7px;
+       text-align:left;
+       border-top:1px dotted #8CACBB;
+       background:#ebebff;
+}
+
+.title {
+	font-style:italic;
+}
+
 table.columns{
 	width:100%;
 	padding:0em;

Modified: blends/trunk/webtools/blendstasktools.py
URL: http://svn.debian.org/viewsvn/blends/blends/trunk/webtools/blendstasktools.py?rev=1826&view=diff&r1=1826&r2=1825&p1=blends/trunk/webtools/blendstasktools.py&p2=blends/trunk/webtools/blendstasktools.py
==============================================================================
--- blends/trunk/webtools/blendstasktools.py	(original)
+++ blends/trunk/webtools/blendstasktools.py	Fri Aug 21 21:25:36 2009
@@ -1246,6 +1246,15 @@
                     else:
                         print >>stderr, "Dep not initiated before %s %s -> something is wrong." \
                               % (key, stanza[key.lower()])
+                elif key.startswith('Published-'):
+                    if dep != None:
+                        if not dep.properties.has_key('published'):
+                            dep.properties['published'] = {}
+                        ptype = key.replace('Published-','').lower()
+                        dep.properties['published'][ptype] = stanza[key.lower()]
+                    else:
+                        print >>stderr, "Dep not initiated before %s %s -> something is wrong." \
+                              % (key, stanza[key.lower()])
                 elif key == 'WNPP':
                     if dep != None:
                         # it makes sense to assume that a package where WNPP was recently closed

Modified: blends/trunk/webtools/templates/tasks.xhtml
URL: http://svn.debian.org/viewsvn/blends/blends/trunk/webtools/templates/tasks.xhtml?rev=1826&view=diff&r1=1826&r2=1825&p1=blends/trunk/webtools/templates/tasks.xhtml&p2=blends/trunk/webtools/templates/tasks.xhtml
==============================================================================
--- blends/trunk/webtools/templates/tasks.xhtml	(original)
+++ blends/trunk/webtools/templates/tasks.xhtml	Fri Aug 21 21:25:36 2009
@@ -161,6 +161,12 @@
 	       ${project.pkg} kindly ask you for registration if you
 	       are using this program.
 	     </div>
+	     <div class="published" py:if="project.properties.has_key('published')">
+	       <span class="authors" py:if="project.properties['published'].has_key('authors')">${project.properties['published']['authors']}:</span>
+	       <span class="title" py:if="project.properties['published'].has_key('title')">${project.properties['published']['title']}.</span>
+	       <span class="journal" py:if="project.properties['published'].has_key('in')">${project.properties['published']['in']}</span>
+	       <span class="year" py:if="project.properties['published'].has_key('year')">(${project.properties['published']['year']})</span>
+	     </div>
 	   </td>
 	   <td py:if="project.component" class="project-icon">
 	     <div py:choose="">



More information about the Blends-commit mailing list