Exemplo n.º 1
0
Arquivo: wss.py Projeto: brtsz/zato
 def handle(self, *args, **kwargs):
     
     with closing(self.server.odb.session()) as session:
         params = _get_params(kwargs.get('payload'), ['cluster_id'], 'data.')
         definition_list = Element('definition_list')
         definitions = wss_list(session, params['cluster_id'])
 
         for definition in definitions:
 
             definition_elem = Element('definition')
             definition_elem.id = definition.id
             definition_elem.name = definition.name
             definition_elem.is_active = definition.is_active
             definition_elem.password_type = definition.password_type
             definition_elem.username = definition.username
             definition_elem.reject_empty_nonce_ts = definition.reject_empty_nonce_ts
             definition_elem.reject_stale_username = definition.reject_stale_username
             definition_elem.expiry_limit = definition.expiry_limit
             definition_elem.nonce_freshness = definition.nonce_freshness
 
             definition_list.append(definition_elem)
 
         return ZATO_OK, etree.tostring(definition_list)
Exemplo n.º 2
0
 def get_wss_list(self, cluster_id, needs_columns=False):
     """ Returns a list of WS-Security definitions on the given cluster.
     """
     with closing(self.session()) as session:
         return query.wss_list(session, cluster_id, needs_columns)
Exemplo n.º 3
0
Arquivo: odb.py Projeto: bboerner/zato
 def get_wss_list(self, cluster_id, needs_columns=False):
     """ Returns a list of WS-Security definitions on the given cluster.
     """
     with closing(self.session()) as session:
         return query.wss_list(session, cluster_id, needs_columns)
Exemplo n.º 4
0
 def get_data(self, session):
     return wss_list(session, self.request.input.cluster_id, False)
Exemplo n.º 5
0
 def get_data(self, session):
     return wss_list(session, self.request.input.cluster_id, False)
Exemplo n.º 6
0
Arquivo: odb.py Projeto: dsuch/zato
 def get_wss_list(self, cluster_id, needs_columns=False):
     """ Returns a list of WS-Security definitions on the given cluster.
     """
     return wss_list(self._session, cluster_id, needs_columns)
Exemplo n.º 7
0
 def get_wss_list(self, cluster_id, needs_columns=False):
     """ Returns a list of WS-Security definitions on the given cluster.
     """
     return wss_list(self._session, cluster_id, needs_columns)
Exemplo n.º 8
0
Arquivo: odb.py Projeto: brtsz/zato
 def get_wss_list(self, cluster_id):
     """ Returns a list of WS-Security definitions on the given cluster .
     """
     return wss_list(self._session, cluster_id)