[library-web] mallard: add support for uix:thumb
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] mallard: add support for uix:thumb
- Date: Tue, 24 Nov 2015 13:49:48 +0000 (UTC)
commit 619cd2663b048ffa86446d29dffd74c4bcda3191
Author: Frédéric Péters <fpeters 0d be>
Date: Tue Nov 24 14:49:22 2015 +0100
mallard: add support for uix:thumb
src/modtypes/mallard.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 90b23f4..6c36137 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -41,6 +41,7 @@ def dup_node(e):
MAL_NS = 'http://projectmallard.org/1.0/'
+MAL_UIX_NS = 'http://projectmallard.org/experimental/ui/'
class NotAMallardPageException(Exception):
pass
@@ -139,6 +140,8 @@ class MallardPage:
self.info_nodes.append(link_tag)
for link_tag in element.findall('{%s}title' % MAL_NS):
self.info_nodes.append(link_tag)
+ for thumb_tag in element.findall('{%s}thumb' % MAL_UIX_NS):
+ self.info_nodes.append(thumb_tag)
def toxml(self):
e = ET.Element('{%s}page' % MAL_NS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]