Did I find the right examples for you? yes no

All Samples(14)  |  Call(8)  |  Derive(0)  |  Import(6)

src/f/l/Flask-Fanstatic-0.2.0/flask_fanstatic.py   Flask-Fanstatic(Download)
from fanstatic import (init_needed, del_needed, Publisher, get_library_registry,
                       DEFAULT_SIGNATURE, Resource, Library, Group)
from flask import Blueprint, g, Markup, current_app, request
from werkzeug import cached_property
from werkzeug.utils import import_string
  def __init__(self, app):
    self.publisher = Publisher(get_library_registry())
 
    app.before_request(self.before_request)
    teardown_request = getattr(app, 'teardown_request', app.after_request)

src/f/l/flask-fanstatic-HEAD/flask_fanstatic.py   flask-fanstatic(Download)
from fanstatic import (init_needed, del_needed, Publisher, get_library_registry,
                       DEFAULT_SIGNATURE, Resource, Library, Group)
from flask import Blueprint, g, Markup, current_app, request
from werkzeug import cached_property
from werkzeug.utils import import_string
  def __init__(self, app):
    self.publisher = Publisher(get_library_registry())
 
    app.before_request(self.before_request)
    teardown_request = getattr(app, 'teardown_request', app.after_request)

src/c/k/ckan-2.2/ckan/lib/fanstatic_resources.py   ckan(Download)
import ConfigParser
 
from fanstatic import Library, Resource, Group, get_library_registry
import fanstatic.core as core
 
    setattr(module, name, library)
    # add to fanstatic
    registry = get_library_registry()
    registry.add(library)
 

src/c/k/ckan-HEAD/ckan/lib/fanstatic_resources.py   ckan(Download)
import ConfigParser
 
from fanstatic import Library, Resource, Group, get_library_registry
import fanstatic.core as core
 
    setattr(module, name, library)
    # add to fanstatic
    registry = get_library_registry()
    registry.add(library)
 

src/s/i/silva.fanstatic-1.2/src/silva/fanstatic/martiansupport/resources.py   silva.fanstatic(Download)
    if path is None:
        path = 'static'
    registry = fanstatic.get_library_registry()
    if name in registry:
        library = registry[name]

src/p/y/pyramid_fanstatic-0.5/pyramid_fanstatic/__init__.py   pyramid_fanstatic(Download)
        self.config = fanstatic_config(config)
        self.handler = handler
        self.publisher = Publisher(fanstatic.get_library_registry())
        self.publisher_signature = self.config.get('publisher_signature')
        self.trigger = '/%s/' % self.publisher_signature

src/p/y/pyramid_fanstatic-HEAD/pyramid_fanstatic/__init__.py   pyramid_fanstatic(Download)
        self.config = fanstatic_config(config)
        self.handler = handler
        self.publisher = Publisher(fanstatic.get_library_registry())
        self.publisher_signature = self.config.get('publisher_signature')
        self.trigger = '/%s/' % self.publisher_signature

src/r/e/rebecca.fanstatic-0.1.2/rebecca/fanstatic/apis.py   rebecca.fanstatic(Download)
from fanstatic import get_library_registry
from zope.interface import implementer
from .interfaces import IFanstaticSet
 
def get_fanstatic_set(request):

src/f/a/fanstatic-1.0a5/tests/test_registry.py   fanstatic(Download)
import pytest
 
from fanstatic import get_library_registry, Library, compat
 
 
def test_library_registry():
    # Skip this test if the test fixtures has not been installed.
    pytest.importorskip('mypackage')
 
    library_registry = get_library_registry()