def surf_this(self, widget): name = self.vhosts_treeview.get_selected_line() if name == 'default': server_name = 'localhost' else: server_name = self.get_current_vhost().get_server_name() # TODO: move to vhost.get_url() protocol = "http" if self.get_current_vhost().get_port() == 443: protocol = "https" if (server_name): Desktop.open_url(protocol + "://" + server_name)
def surf_this(self, widget): name = self.vhosts_treeview.get_selected_line() if name == 'default': server_name = 'localhost' else: server_name = self.get_current_vhost().get_server_name() # TODO: move to vhost.get_url() protocol = "http" if self.get_current_vhost().get_port() == 443: protocol = "https" if ( server_name ): Desktop.open_url( protocol+"://" + server_name )
def on_linkbutton_documentation_clicked(self, widget): Desktop.open_url(widget.get_uri())
def browse_this(self, widget): document_root = self.get_current_vhost().config.DocumentRoot.value Desktop.open_dir(document_root)
def browse_sites_available(self, widget): Desktop.open_dir(Configuration.SYSCONFDIR) return
def open_module_doc( name ): if ( name == None ): return False url = "http://httpd.apache.org/docs/2.2/mod/mod_%s.html" % name Desktop.open_url( url )
def open_module_doc(name): if (name == None): return False url = "http://httpd.apache.org/docs/2.2/mod/mod_%s.html" % name Desktop.open_url(url)
def on_linkbutton_documentation_clicked(self, widget): Desktop.open_url( widget.get_uri() )
def browse_this(self, widget): document_root = self.get_current_vhost().config.DocumentRoot.value Desktop.open_dir( document_root )
def browse_sites_available(self, widget): Desktop.open_dir( Configuration.SYSCONFDIR ) return