runtime/NevowServer.py
changeset 2649 db68cb0e6bdc
parent 2311 bef2b4b87370
child 2654 7575050a80c5
equal deleted inserted replaced
2648:e4ab768170f9 2649:db68cb0e6bdc
   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