runtime/NevowServer.py
changeset 2650 449c9539887a
parent 2649 db68cb0e6bdc
child 2654 7575050a80c5
equal deleted inserted replaced
2644:769fefae7c81 2650:449c9539887a
   177                 action=btnlabel)
   177                 action=btnlabel)
   178         setattr(self, 'bind_' + name, _bind)
   178         setattr(self, 'bind_' + name, _bind)
   179 
   179 
   180         setattr(self, 'action_' + name, callback)
   180         setattr(self, 'action_' + name, callback)
   181 
   181 
   182         self.bindingsNames.append(name)
   182         if name not in self.bindingsNames:
       
   183             self.bindingsNames.append(name)
       
   184 
       
   185 
       
   186     def delSettings(self, name):
       
   187         if name in self.bindingsNames:
       
   188             self.bindingsNames.remove(name)
   183 
   189 
   184 
   190 
   185 ConfigurableSettings = ConfigurableBindings()
   191 ConfigurableSettings = ConfigurableBindings()
   186 
   192 
   187 
   193