summaryrefslogtreecommitdiff
path: root/repoze/bfg/registry.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-11-02 20:44:18 +0000
committerChris McDonough <chrism@agendaless.com>2008-11-02 20:44:18 +0000
commit4878517d4ccc5c9d36188076185535198c336371 (patch)
tree40ad9b962df110ddd70a6a4def4d4b6cec2e76f3 /repoze/bfg/registry.py
parent6b33335a356615efa43b76d812082f0534e89e60 (diff)
downloadpyramid-4878517d4ccc5c9d36188076185535198c336371.tar.gz
pyramid-4878517d4ccc5c9d36188076185535198c336371.tar.bz2
pyramid-4878517d4ccc5c9d36188076185535198c336371.zip
- Not passing the result of "get_options" as the second argument of
make_app could cause attribute errors when attempting to look up settings against the ISettings object (internal). Fixed by giving the Settings objects defaults for ``debug_authorization`` and ``debug_notfound``.
Diffstat (limited to 'repoze/bfg/registry.py')
-rw-r--r--repoze/bfg/registry.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/repoze/bfg/registry.py b/repoze/bfg/registry.py
index eccfa27e0..b76453f36 100644
--- a/repoze/bfg/registry.py
+++ b/repoze/bfg/registry.py
@@ -72,6 +72,8 @@ def makeRegistry(filename, package, options=None, lock=threading.Lock()):
class Settings(object):
implements(ISettings)
reload_templates = False
+ debug_notfound = False
+ debug_authorization = False
def __init__(self, options):
self.__dict__.update(options)