library-web r514 - in trunk: . src



Author: fpeters
Date: Tue Oct 14 14:02:35 2008
New Revision: 514
URL: http://svn.gnome.org/viewvc/library-web?rev=514&view=rev

Log:
* src/lgo.py: don't update document title with nightly-generated
document title.



Modified:
   trunk/ChangeLog
   trunk/src/lgo.py

Modified: trunk/src/lgo.py
==============================================================================
--- trunk/src/lgo.py	(original)
+++ trunk/src/lgo.py	Tue Oct 14 14:02:35 2008
@@ -1061,16 +1061,17 @@
 
         quirks = app.overlay.get_quirks(self)
 
-        if tree.find('title') is not None and tree.find('title').text:
-            doc.title[lang] = tree.find('title').text
-        elif tree.find('{http://www.w3.org/1999/xhtml}title') is not None and \
-                tree.find('{http://www.w3.org/1999/xhtml}title').text:
-            doc.title[lang] = tree.find('{http://www.w3.org/1999/xhtml}title').text
-        if tree.find('abstract') is not None and tree.find('abstract').text:
-            doc.abstract[lang] = tree.find('abstract').text
-        elif tree.find('{http://www.w3.org/1999/xhtml}abstract') is not None and \
-                tree.find('{http://www.w3.org/1999/xhtml}abstract').text:
-            doc.abstract[lang] = tree.find('{http://www.w3.org/1999/xhtml}abstract').text
+        if self.version != 'nightly' and doc.title:
+            if tree.find('title') is not None and tree.find('title').text:
+                doc.title[lang] = tree.find('title').text
+            elif tree.find('{http://www.w3.org/1999/xhtml}title') is not None and \
+                    tree.find('{http://www.w3.org/1999/xhtml}title').text:
+                doc.title[lang] = tree.find('{http://www.w3.org/1999/xhtml}title').text
+            if tree.find('abstract') is not None and tree.find('abstract').text:
+                doc.abstract[lang] = tree.find('abstract').text
+            elif tree.find('{http://www.w3.org/1999/xhtml}abstract') is not None and \
+                    tree.find('{http://www.w3.org/1999/xhtml}abstract').text:
+                doc.abstract[lang] = tree.find('{http://www.w3.org/1999/xhtml}abstract').text
 
         if 'no-title-and-abstract-from-document' in quirks:
             if doc.title.get(lang):



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