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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
The Factory part 

    def load(name, extra_context):
        """ The Factory part """

            cls = registered_services.get(name)
            return cls(extra_context)
        except KeyError, e:
            return None

src/n/a/narcissist-HEAD/narcissist/main.py   narcissist(Download)
        # Factory - based on plugin name, returns an instance of a service.
        service = Service.load(plugin, extra)
        # Curry the service view function so it can also serve XHR requests