def _show_panel(self, req, protos, scm_type):
        data = {'available_scm_protocols': ProtocolManager.available_schemes(scm_type),
                'available_dav_protocols': ProtocolManager.available_schemes('dav'),
                'allowed_scm_protocols': protos.allowed_protocols(scm_type),
                'allowed_dav_protocols': protos.allowed_protocols('dav'),
                'protos': ProtocolManager.protocols.keys()}

        return 'admin_protocols.html', data
    def _show_panel(self, req, protos, scm_type):
        data = {
            'available_scm_protocols':
            ProtocolManager.available_schemes(scm_type),
            'available_dav_protocols':
            ProtocolManager.available_schemes('dav'),
            'allowed_scm_protocols': protos.allowed_protocols(scm_type),
            'allowed_dav_protocols': protos.allowed_protocols('dav'),
            'protos': ProtocolManager.protocols.keys()
        }

        return 'admin_protocols.html', data
    def protocols(self, project_id, scm):
        protocol_manager = ProtocolManager(project_id)
        allowed = protocol_manager.allowed_protocols(scm)

        schemes = []
        for proto in ProtocolManager.available_schemes(scm):
            if proto in allowed:
                schemes.append(proto)
        return schemes
    def protocols(self, project_id, scm):
        protocol_manager = ProtocolManager(project_id)
        allowed = protocol_manager.allowed_protocols(scm)

        schemes = []
        for proto in ProtocolManager.available_schemes(scm):
            if proto in allowed:
                schemes.append(proto)
        return schemes