33 """Information about one Plugin.""" 35 def __init__(self, plugin_id, attributes=None):
37 self.
_dict[
'plugin_id'] = plugin_id
38 self.
_dict[
'attributes'] = attributes
or {}
41 return self.
_dict[
'plugin_id']
44 return self.
_dict[
'attributes']
47 return self.
_dict.get(
'action', {})
50 self.
_dict[
'action'] = {
52 'statustip': statustip,
58 return self.
_dict.get(
'groups', [])
61 if 'groups' not in self.
_dict:
62 self.
_dict[
'groups'] = []
63 self.
_dict[
'groups'].append({
65 'statustip': statustip,
def __init__(self, plugin_id, attributes=None)
def add_group_attributes(self, label, statustip=None, icon=None, icontype=None)
def set_action_attributes(self, label, statustip=None, icon=None, icontype=None)
def action_attributes(self)