Did I find the right examples for you? yes no

All Samples(42)  |  Call(30)  |  Derive(0)  |  Import(12)

        def code(item):
    _res = []
    i = 0
    for attr in ATTR:
        val = getattr(item, attr)
        if val:
            _res.append("%d=%s" % (i, quote(val)))
        i += 1
    return ",".join(_res)
        


src/p/y/pysaml2-2.0.0/src/saml2/cache.py   pysaml2(Download)
#!/usr/bin/env python
 
import shelve
from saml2.ident import code, decode
from saml2 import time_util, SAMLError
        :param name_id: The subject identifier, a NameID instance
        """
        del self._db[code(name_id)]
 
        if self._sync:
        if not entities:
            try:
                cni = code(name_id)
                entities = self._db[cni].keys()
            except KeyError:
        :return: The session information
        """
        cni = code(name_id)
        (timestamp, info) = self._db[cni][entity_id]
        if check_not_on_or_after and time_util.after(timestamp):
        :param not_on_or_after: A time after which the assertion is not valid.
        """
        cni = code(name_id)
        if cni not in self._db:
            self._db[cni] = {}

src/p/y/pysaml2-HEAD/src/saml2/cache.py   pysaml2(Download)
#!/usr/bin/env python
 
import shelve
from saml2.ident import code, decode
from saml2 import time_util, SAMLError
        :param name_id: The subject identifier, a NameID instance
        """
        del self._db[code(name_id)]
 
        if self._sync:
        if not entities:
            try:
                cni = code(name_id)
                entities = self._db[cni].keys()
            except KeyError:
        :return: The session information
        """
        cni = code(name_id)
        (timestamp, info) = self._db[cni][entity_id]
        if check_not_on_or_after and time_util.after(timestamp):
        :param not_on_or_after: A time after which the assertion is not valid.
        """
        cni = code(name_id)
        if cni not in self._db:
            self._db[cni] = {}

src/p/y/pysaml2-2.0.0/src/s2repoze/plugins/sp.py   pysaml2(Download)
 
from saml2.client import Saml2Client
from saml2.ident import code, decode
from saml2.s_utils import sid
from saml2.config import config_factory
    def _construct_identity(self, session_info):
        cni = code(session_info["name_id"])
        identity = {
            "login": cni,
            "password": "",

src/p/y/pysaml2-HEAD/src/s2repoze/plugins/sp.py   pysaml2(Download)
 
from saml2.client import Saml2Client
from saml2.ident import code, decode
from saml2.s_utils import sid
from saml2.config import config_factory
    def _construct_identity(self, session_info):
        cni = code(session_info["name_id"])
        identity = {
            "login": cni,
            "password": "",

src/p/y/pysaml2-2.0.0/src/saml2/mongo_store.py   pysaml2(Download)
from saml2.s_utils import PolicyError
 
from saml2.ident import code, IdentDB, Unknown
from saml2.mdie import to_dict, from_dict
 

src/p/y/pysaml2-HEAD/src/saml2/mongo_store.py   pysaml2(Download)
from saml2.s_utils import PolicyError
 
from saml2.ident import code, IdentDB, Unknown
from saml2.mdie import to_dict, from_dict
 

src/p/y/pysaml2-2.0.0/src/saml2/sdb.py   pysaml2(Download)
import logging
 
from hashlib import sha1
 
from saml2.ident import code

src/p/y/pysaml2-HEAD/src/saml2/sdb.py   pysaml2(Download)
import logging
 
from hashlib import sha1
 
from saml2.ident import code

src/p/y/pysaml2-2.0.0/tests/test_34_population.py   pysaml2(Download)
#!/usr/bin/env python
from saml2.ident import code
from saml2.saml import NAMEID_FORMAT_TRANSIENT, NameID
 
from saml2.population import Population
             text="abcdef")
 
cnid = code(nid)
cnida = code(nida)
 
        issuers = self.population.issuers_of_info(nid)
        assert issuers == [IDP_ONE]
        subjects = [code(c) for c in self.population.subjects()]
        assert subjects == [cnid]
        # Are any of the sources gone stale
        issuers = self.population.issuers_of_info(nid)
        assert _eq(issuers, [IDP_ONE, IDP_OTHER])
        subjects = [code(c) for c in self.population.subjects()]
        assert subjects == [cnid]
        # Are any of the sources gone stale

src/p/y/pysaml2-HEAD/tests/test_34_population.py   pysaml2(Download)
#!/usr/bin/env python
from saml2.ident import code
from saml2.saml import NAMEID_FORMAT_TRANSIENT, NameID
 
from saml2.population import Population
             text="abcdef")
 
cnid = code(nid)
cnida = code(nida)
 
        issuers = self.population.issuers_of_info(nid)
        assert issuers == [IDP_ONE]
        subjects = [code(c) for c in self.population.subjects()]
        assert subjects == [cnid]
        # Are any of the sources gone stale
        issuers = self.population.issuers_of_info(nid)
        assert _eq(issuers, [IDP_ONE, IDP_OTHER])
        subjects = [code(c) for c in self.population.subjects()]
        assert subjects == [cnid]
        # Are any of the sources gone stale

  1 | 2  Next