From 7905926c413e843d9497948cb824059f2c017f6a Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 26 Aug 2013 03:04:23 +0000 Subject: Support sorting database search results by rank, and add a rank attribute to ATOM entries. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1517412 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/wsgi/atomutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sca-cpp/trunk/modules/wsgi/atomutil.py') diff --git a/sca-cpp/trunk/modules/wsgi/atomutil.py b/sca-cpp/trunk/modules/wsgi/atomutil.py index d65b26c41c..92ad023449 100644 --- a/sca-cpp/trunk/modules/wsgi/atomutil.py +++ b/sca-cpp/trunk/modules/wsgi/atomutil.py @@ -70,7 +70,8 @@ def readATOMFeed(l): # Convert a list of values representy an ATOM entry to a list of elements def entryElement(l): - title = elementValue(namedElementChild("'title", l)) + etitle = namedElementChild("'title", l) + title = elementValue(etitle) if elementHasValue(etitle) else '' id = elementValue(namedElementChild("'id", l)) content = namedElementChild("'content", l) text = False if isNull(content) else elementHasValue(content) -- cgit v1.2.3