From 13bed45c0edaa0eaa4b7a597aab3a5668620cb0e Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 11 Apr 2013 12:50:49 +0200 Subject: [PATCH] plugin's title is optional --- unfold/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unfold/plugin.py b/unfold/plugin.py index ddba40b4..7ee79afe 100644 --- a/unfold/plugin.py +++ b/unfold/plugin.py @@ -68,11 +68,12 @@ class Plugin: def __init__ (self, page, title=None, domid=None, visible=True, togglable=None, toggled=None, **settings): self.page = page - self.title=title # callers can provide their domid for css'ing if not domid: domid=Plugin.newdomid() self.domid=domid + # title is shown when togglable if not title: title="Plugin title for %s"%domid + self.title=title self.classname=self._py_classname() self.plugin_classname=self._js_classname() self.visible=visible -- 2.43.0