From 5af38453a8bc39266642f1638e9213314eec90e8 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 15 Oct 2009 22:35:17 -0400 Subject: [PATCH] Update Topic to use registry.TemplatedString Signed-off-by: James Vega --- plugins/Topic/config.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/Topic/config.py b/plugins/Topic/config.py index efb0fe23b..6ab0ef3fc 100644 --- a/plugins/Topic/config.py +++ b/plugins/Topic/config.py @@ -39,13 +39,9 @@ def configure(advanced): conf.registerPlugin('Topic', True) -class TopicFormat(registry.String): +class TopicFormat(registry.TemplatedString): "Value must include $topic, otherwise the actual topic would be left out." - def setValue(self, v): - if '$topic' in v or '${topic}' in v: - registry.String.setValue(self, v) - else: - self.error() + requiredTemplates = ['topic'] Topic = conf.registerPlugin('Topic') conf.registerChannelValue(Topic, 'separator',