Beispiel #1
0
 def open_edit_vhost_window(self, vhost):
     if not vhost.is_editable(): 
         # Use generic editor instead
         gew = EditGenericWindow()
         gew.load( vhost.get_source_filename() )
         gew.run()
     else:
         new_vhost_window = VirtualHostWindow ( self )
         new_vhost_window.load( vhost )
         new_vhost_window.run()    
     self.refresh_config_test()
Beispiel #2
0
 def open_edit_vhost_window(self, vhost):
     if not vhost.is_editable():
         # Use generic editor instead
         gew = EditGenericWindow()
         gew.load(vhost.get_source_filename())
         gew.run()
     else:
         new_vhost_window = VirtualHostWindow(self)
         new_vhost_window.load(vhost)
         new_vhost_window.run()
     self.refresh_config_test()
Beispiel #3
0
 def new_button_clicked(self, widget):
     new_vhost_window = VirtualHostWindow(self)
     new_vhost_window.load("")
     new_vhost_window.run()
     self.refresh_config_test()
Beispiel #4
0
 def new_button_clicked(self, widget):
     new_vhost_window = VirtualHostWindow ( self )
     new_vhost_window.load("")
     new_vhost_window.run()
     self.refresh_config_test()