comparison 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
comparison
equal deleted inserted replaced
179:42e23a62b57f 180:fc687620599b
33 {"type": "boolean", 33 {"type": "boolean",
34 "label": "Persist items to storage"}, 34 "label": "Persist items to storage"},
35 "pubsub#deliver_payloads": 35 "pubsub#deliver_payloads":
36 {"type": "boolean", 36 {"type": "boolean",
37 "label": "Deliver payloads with event notifications"}, 37 "label": "Deliver payloads with event notifications"},
38 "pubsub#send_last_published_item":
39 {"type": "list-single",
40 "label": "When to send the last published item',
41 "options": {'never', 'on_sub'},
38 } 42 }
39 43
40 default_config = {"pubsub#persist_items": True, 44 default_config = {"pubsub#persist_items": True,
41 "pubsub#deliver_payloads": True, 45 "pubsub#deliver_payloads": True,
46 "pubsub#send_last_published_item": 'on_sub',
42 } 47 }
43 48
44 def __init__(self, storage): 49 def __init__(self, storage):
45 utility.EventDispatcher.__init__(self) 50 utility.EventDispatcher.__init__(self)
46 self.storage = storage 51 self.storage = storage