diff idavoll/backend.py @ 180:fc687620599b

Properly add send_last_published_item configuration item.
author Ralph Meijer <ralphm@ik.nu>
date Thu, 10 Apr 2008 14:33:50 +0000
parents 42e23a62b57f
children 0d4474051eeb
line wrap: on
line diff
--- a/idavoll/backend.py	Thu Apr 10 14:06:00 2008 +0000
+++ b/idavoll/backend.py	Thu Apr 10 14:33:50 2008 +0000
@@ -35,10 +35,15 @@
                "pubsub#deliver_payloads":
                   {"type": "boolean",
                    "label": "Deliver payloads with event notifications"},
+               "pubsub#send_last_published_item":
+                  {"type": "list-single",
+                   "label": "When to send the last published item',
+                   "options": {'never', 'on_sub'},
               }
 
     default_config = {"pubsub#persist_items": True,
                       "pubsub#deliver_payloads": True,
+                      "pubsub#send_last_published_item": 'on_sub',
                      }
 
     def __init__(self, storage):