library-web r389 - in trunk: . data src



Author: fpeters
Date: Sat Mar  1 17:27:53 2008
New Revision: 389
URL: http://svn.gnome.org/viewvc/library-web?rev=389&view=rev

Log:
* data/overlay.xml.in, src/lgo.py: default documents without toc_id to
"Other", same for documents in the "misc" channel.  Add a draft
abstract for release notes.



Modified:
   trunk/ChangeLog
   trunk/data/overlay.xml.in
   trunk/src/lgo.py

Modified: trunk/data/overlay.xml.in
==============================================================================
--- trunk/data/overlay.xml.in	(original)
+++ trunk/data/overlay.xml.in	Sat Mar  1 17:27:53 2008
@@ -631,9 +631,11 @@
     </document>
 
     <document doc_module="release-notes" channel="misc" old-channel="users">
-      <keywords>
-        <keyword>no-main-index</keyword>
-      </keywords>
+      <_title>Release Notes</_title>
+      <_abstract>
+        With its time-based release schedule, every six months, to the minute, 
+	there is a new GNOME release, and accompanying notes.
+      </_abstract>
     </document>
 
   </documents>

Modified: trunk/src/lgo.py
==============================================================================
--- trunk/src/lgo.py	(original)
+++ trunk/src/lgo.py	Sat Mar  1 17:27:53 2008
@@ -731,6 +731,8 @@
             channel = 'devel'
 
         self.channel = app.overlay.get_channel_overlay(self.modulename, channel)
+        if self.channel == 'misc' and not self.category:
+            self.category = 'GNOME|Other'
 
     def __str__(self):
         return 'gnome-doc-utils module at %s' % self.dirname
@@ -1750,8 +1752,8 @@
                 sections = {}
                 for x in docs:
                     if x.toc_id is None:
-                        logging.error('doc %s has no toc id -> skipping' % x.module)
-                        continue
+                        logging.warning('doc %s has no toc id -> default to Other' % x.module)
+                        x.toc_id = 'Other'
                     sections[x.toc_id] = True
                 sections = sections.keys()
                 sections.sort()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]