damned-lies r710 - in trunk: . templates
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r710 - in trunk: . templates
- Date: Wed, 16 Jan 2008 20:36:17 +0000 (GMT)
Author: claudep
Date: Wed Jan 16 20:36:16 2008
New Revision: 710
URL: http://svn.gnome.org/viewvc/damned-lies?rev=710&view=rev
Log:
2008-01-16 Claude Paroz <claude 2xlibre net>
* data.py: Allow URL link in string without parsing it as an XML node.
* gnome-modules.xml.in: Add GNUCash module.
* releases.xml.in: gnome-build and gdl were listed twice.
* templates/module.tmpl: Display the comment attribute when available.
Modified:
trunk/ChangeLog
trunk/data.py
trunk/gnome-modules.xml.in
trunk/releases.xml.in
trunk/templates/module.tmpl
Modified: trunk/data.py
==============================================================================
--- trunk/data.py (original)
+++ trunk/data.py Wed Jan 16 20:36:16 2008
@@ -205,7 +205,7 @@
s = u''
child = node.children
while child:
- if child.type == 'text':
+ if child.type == 'text' or (child.type == 'element' and child.hasProp('href')):
s += child.serialize('utf-8').decode('utf-8')
child = child.next
return s
@@ -217,7 +217,7 @@
child = node.children
while child and child.isText():
child = child.next
- if child and not child.isText():
+ if child and not child.isText() and child.name != 'a'::
return 0
else:
return 1
Modified: trunk/gnome-modules.xml.in
==============================================================================
--- trunk/gnome-modules.xml.in (original)
+++ trunk/gnome-modules.xml.in Wed Jan 16 20:36:16 2008
@@ -1606,6 +1606,16 @@
<branch id="gnome-2-20" stringfrozen="true"/>
</module>
<!-- Non-GNOME modules -->
+ <module id="gnucash">
+ <description>GNUCash</description>
+ <_comment>GNUCash is not part of the GNOME SVN repository. Please check <a href="http://wiki.gnucash.org/wiki/Translation#Submitting">the GNUCash Wiki</a> to see where to send translations.</_comment>
+ <webpage>http://www.gnucash.org</webpage>
+ <scmroot type="svn">
+ <path>http://svn.gnucash.org/repo</path>
+ </scmroot>
+ <scmweb>http://svn.gnucash.org/viewcvs/gnucash/trunk</scmweb>
+ <branch id="2.2"/>
+ </module>
<module id="gstreamer">
<webpage>http://gstreamer.freedesktop.org</webpage>
<bugs-component>gstreamer (core)</bugs-component>
Modified: trunk/releases.xml.in
==============================================================================
--- trunk/releases.xml.in (original)
+++ trunk/releases.xml.in Wed Jan 16 20:36:16 2008
@@ -569,12 +569,10 @@
<module id="file-roller"/>
<module id="gcalctool"/>
<module id="gconf-editor"/>
- <module id="gdl"/>
<module id="gdm"/>
<module id="gedit"/>
<module id="gnome-applets"/>
<module id="gnome-backgrounds"/>
- <module id="gnome-build"/>
<module id="gnome-control-center"/>
<module id="gnome-desktop"/>
<module id="gnome-doc-utils"/>
Modified: trunk/templates/module.tmpl
==============================================================================
--- trunk/templates/module.tmpl (original)
+++ trunk/templates/module.tmpl Wed Jan 16 20:36:16 2008
@@ -5,8 +5,12 @@
<div class="mainpage">
<h1>$module.description</h1>
-#if $module.scmroot.path!="http://svn.gnome.org/svn"
-<p><i><img src="${webroot}/data/warn.png" alt="Warning logo" /> $_("This module is not part of the GNOME SVN repository. Please check the module's web page to see where to send translations.")</i></p>
+#if $module.has_key('comment') and $module.comment
+<p>$module.comment</p>
+#else
+ #if $module.scmroot.path!="http://svn.gnome.org/svn"
+ <p><i><img src="${webroot}/data/warn.png" alt="Warning logo" /> $_("This module is not part of the GNOME SVN repository. Please check the module's web page to see where to send translations.")</i></p>
+ #end if
#end if
#if $module.has_key('webpage') and $module.webpage
<p><a href="$module.webpage">$module.webpage</a></p>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]