On Oct 28, 2007, at 5:22 AM, Robert Ian Smit wrote:
def load_environment(global_conf, app_conf):
    """Configure the Pylons environment via the ``pylons.config``
object"""

    # The beaker code expects a class while the config option is
    # a string containing the name of the class.
    # If we recognize the option and value we replace the string
    # with the actual class
    from beaker.ext.database import DatabaseNamespaceManager
    if ('beaker.session.namespace_class' in app_conf and
        app_conf['beaker.session.namespace_class'] == 'ext:database'):
        app_conf['beaker.session.namespace_class'] =
DatabaseNamespaceManager
    if ('beaker.cache.namespace_class' in app_conf and
        app_conf['beaker.cache.namespace_class'] == 'ext:database'):
        app_conf['beaker.cache.namespace_class'] =
DatabaseNamespaceManager

Is it possible to have beaker use the DatabaseNamespaceManager without
intermediate parsing of the pylons config?

Why do you need to set the namespace class like that? You can't do:
beaker.cache.sa.url = ....
etc.

In the ini file?

Cheers,
Ben

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to