From 7d8132a8f72f81ead76bd71a6602e2db9b27502d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 7 Dec 2010 23:53:12 -0500 Subject: comment --- pyramid/configuration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyramid/configuration.py b/pyramid/configuration.py index 3de194d23..c0fb8ce78 100644 --- a/pyramid/configuration.py +++ b/pyramid/configuration.py @@ -108,10 +108,11 @@ def config_method(wrapped): context = self._ctx if not context.autocommit: if not context.info: - # try to provide more accurate info for conflict reports by + # Try to provide more accurate info for conflict reports by # wrapping the context in a decorator and attaching caller info # to it, unless the context already has info (if it already has # info, it's likely a context generated by a ZCML directive). + # This is nasty. newctx = GroupingContextDecorator(context) try: f = traceback.extract_stack(limit=3) @@ -2905,3 +2906,4 @@ class PyramidConfigurationMachine(ConfigurationMachine): return False self._seen_files.add(spec) return True + -- cgit v1.2.3