Did I find the right examples for you? yes no

All Samples(103)  |  Call(0)  |  Derive(0)  |  Import(103)
Simple access to configuration values.

The configuration values are represented as a single object with
attributes for each bit of information.

src/z/o/Zope2-2.13.22/src/Zope2/Startup/run.py   Zope2(Download)
    where the configuration file exists. """
    from Zope2.Startup import options, handlers
    from App import config
    opts = options.ZopeOptions()
    if configfile:
 
    handlers.handleConfig(opts.configroot, opts.confighandlers)
    import App.config
    App.config.setConfiguration(opts.configroot)
    return opts

src/z/o/Zope-HEAD/src/Zope2/Startup/run.py   Zope(Download)
    where the configuration file exists. """
    from Zope2.Startup import options, handlers
    from App import config
    opts = options.ZopeOptions()
    if configfile:
 
    handlers.handleConfig(opts.configroot, opts.confighandlers)
    import App.config
    App.config.setConfiguration(opts.configroot)
    return opts

src/z/o/Zope2-2.13.22/src/Zope2/utilities/finder.py   Zope2(Download)
            config_file = self.get_zope_conf()
        from Zope2.Startup import options, handlers
        import App.config
        import Zope2
        opts = options.ZopeOptions()

src/z/o/Zope2-2.13.22/src/OFS/userfolder.py   Zope2(Download)
            info = readUserAccessFile('inituser')
            if info:
                import App.config
                name, password, domains, remote_user_mode = info
                self._doDelUsers(self.getUserNames())

src/z/o/Zope2-2.13.22/src/OFS/metaconfigure.py   Zope2(Download)
from zope.security.interfaces import IPermission
 
import App.config
from OFS.subscribers import deprecatedManageAddDeleteClasses
import Products

src/z/o/Zope2-2.13.22/src/App/Extensions.py   Zope2(Download)
 
    if cfg is None:
        import App.config
        cfg = App.config.getConfiguration()
 

src/z/o/Zope-HEAD/src/Zope2/utilities/finder.py   Zope(Download)
            config_file = self.get_zope_conf()
        from Zope2.Startup import options, handlers
        import App.config
        import Zope2
        opts = options.ZopeOptions()

src/z/o/Zope-HEAD/src/OFS/userfolder.py   Zope(Download)
            info = readUserAccessFile('inituser')
            if info:
                import App.config
                name, password, domains, remote_user_mode = info
                self._doDelUsers(self.getUserNames())

src/z/o/Zope-HEAD/src/OFS/metaconfigure.py   Zope(Download)
from zope.security.interfaces import IPermission
 
import App.config
from OFS.subscribers import deprecatedManageAddDeleteClasses
import Products

src/z/o/Zope-HEAD/src/App/Extensions.py   Zope(Download)
 
    if cfg is None:
        import App.config
        cfg = App.config.getConfiguration()
 

  1 | 2 | 3 | 4 | 5 | 6  Next