Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Make a module into a WSGI app which serves its content (subject to security restrictions)

src/w/h/whiff-1.1/whiff/middleware/repoze/protect.py   whiff(Download)
        """
        # XXXX this needs to be generalized for user groups...
        self.app = resolver.moduleRootApplication(path, module,
                                         on_not_found=on_not_found,
                                         filter_middleware=filter_middleware,

src/w/h/whiff-1.1/whiff/servers/fsCSI/fsCSI.py   whiff(Download)
    def application(self, root=fsCSIroot):
        app = resolver.moduleRootApplication("/", root,
                                                 exception_middleware=displayTraceback.__middleware__,
                                                 on_not_found=None, # show traceback (could comment)
                                                 )

src/w/h/whiff-1.1/scripts/whiff_expand.py   whiff(Download)
def expand(root, url):
    env = ENV.copy()
    env["PATH_INFO"] = url
    rootModule = getRootModule(root)
    rootApplication = resolver.moduleRootApplication("/", rootModule,

src/w/h/whiff-1.1/scripts/whiff_serve.py   whiff(Download)
    profileFinder = inMemorySession.memoryProfileFinder()
    namefinder = FreshName.FreshNameFinder()
    rootApplication = resolver.moduleRootApplication("/", rootModule,
                                                     exception_middleware=displayTraceback.__middleware__,
                                                     #on_not_found=None, # show traceback (could comment)