示例#1
0
 def set_config_entry(self, entry, value, widget_id=None):
     """
     Sets a configuration entry for this module.
     If there is a widget id given, it changes the same
     configuration value of this widget.
     """
     configuration = Configuration()
     if widget_id is not None:
         widget = Module.get_widget(widget_id)
         configuration.set_entry(entry,value,widget=widget)
     else:    
         configuration.set_entry(entry,value,module=self)