Beispiel #1
0
    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)
Beispiel #2
0
 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 )
Beispiel #3
0
 def on_linkbutton_documentation_clicked(self, widget):
     Desktop.open_url(widget.get_uri())
Beispiel #4
0
 def browse_this(self, widget):
     document_root = self.get_current_vhost().config.DocumentRoot.value
     Desktop.open_dir(document_root)
Beispiel #5
0
 def browse_sites_available(self, widget):
     Desktop.open_dir(Configuration.SYSCONFDIR)
     return
Beispiel #6
0
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 )
Beispiel #7
0
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)
Beispiel #8
0
 def on_linkbutton_documentation_clicked(self, widget):
     Desktop.open_url( widget.get_uri() )
Beispiel #9
0
 def browse_this(self, widget):
     document_root = self.get_current_vhost().config.DocumentRoot.value
     Desktop.open_dir( document_root )
Beispiel #10
0
 def browse_sites_available(self, widget):
     Desktop.open_dir( Configuration.SYSCONFDIR )
     return