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