diff options
Diffstat (limited to 'sca-cpp/trunk/hosting/server')
-rw-r--r-- | sca-cpp/trunk/hosting/server/atomutil.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sca-cpp/trunk/hosting/server/atomutil.py b/sca-cpp/trunk/hosting/server/atomutil.py index 2fbcaff8ce..81cf8dee41 100644 --- a/sca-cpp/trunk/hosting/server/atomutil.py +++ b/sca-cpp/trunk/hosting/server/atomutil.py @@ -32,7 +32,7 @@ def title(e): if isNull(e): return () t = assoc("'title", car(e)) - return None if isNull(t) else cadr(t) + return None if isNull(t) or isNull(cdr(t)) else cadr(t) def entryid(e): if isNull(e): @@ -52,6 +52,12 @@ def updated(e): u = assoc("'updated", car(e)) return None if isNull(u) else cadr(u) +def rank(e): + if isNull(e): + return () + r = assoc("'rank", car(e)) + return None if isNull(r) else cadr(r) + def content(e): if isNull(e): return () |