From 1247752360f613d574fa9973b44abee9f24195d4 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sun, 16 Jan 2005 19:45:45 +0000 Subject: [PATCH] Add guid in item templates. --- NEWS | 2 ++ config | 2 ++ rawdoglib/rawdog.py | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index 0e46bea..a909233 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ - rawdog 2.4 +Provide guid in item templates (suggested by Rick van Rein). + - rawdog 2.3 Make the id= parameter work correctly (patch from Jon Nelson). diff --git a/config b/config index 7dd6a3a..b49209e 100644 --- a/config +++ b/config @@ -81,6 +81,8 @@ template default # __title_no_link__ The item title (as text) # __url__ The item's URL, or the empty string if it doesn't # have one +# __guid__ The item's GUID, or the empty string if it doesn't +# have one # __description__ The item's descriptive text, or the empty string # if it doesn't have a description # __date__ The item's date as provided by the feed diff --git a/rawdoglib/rawdog.py b/rawdoglib/rawdog.py index 81fec29..d6c1431 100644 --- a/rawdoglib/rawdog.py +++ b/rawdoglib/rawdog.py @@ -1039,6 +1039,10 @@ __description__ itembits["url"] = link else: itembits["url"] = "" + if guid is not None: + itembits["guid"] = guid + else: + itembits["guid"] = "" if link is None: itembits["title"] = title else: -- 2.35.1