Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
register principal searcher:

.. code-block:: python

  def searcher(term):
      ...

  ptah.principal_searcher.register('test', searcher)

src/p/t/ptah-0.8.0/ptah/tests/test_auth.py   ptah(Download)
                yield principal
 
        ptah.principal_searcher.register('test-provider', search)
        self.init_ptah()
 

src/p/t/ptah-HEAD/ptah/tests/test_auth.py   ptah(Download)
                yield principal
 
        ptah.principal_searcher.register('test-provider', search)
        self.init_ptah()