From: Thierry Parmentelat Date: Thu, 11 Apr 2013 10:50:49 +0000 (+0200) Subject: plugin's title is optional X-Git-Tag: myslice-0.2-1~159 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=13bed45c0edaa0eaa4b7a597aab3a5668620cb0e plugin's title is optional --- 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