Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for 1.0 and 1.1 branches

  • Loading branch information...
commit aa322c910d95f1e7c85cd051b751c62d18f4e101 1 parent f384a7e
@mcdonc mcdonc authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 pyramid_zcml/__init__.py
View
7 pyramid_zcml/__init__.py
@@ -809,11 +809,14 @@ def with_context(context):
package=context.package,
autocommit=context.autocommit,
)
- configurator.route_prefix = context.route_prefix
- configurator.introspection = context.introspection
configurator.basepath = context.basepath
configurator.includepath = context.includepath
configurator.info = context.info
+ configurator.route_prefix = context.route_prefix
+ configurator.introspection = context.introspection
+ if hasattr(configurator, '_make_context'): # pragma: no cover
+ # 1.0, 1.1 b/c
+ configurator._ctx = context
return configurator
def load_zcml(self, spec='configure.zcml', lock=threading.Lock()):

0 comments on commit aa322c9

Please sign in to comment.
Something went wrong with that request. Please try again.