Skip to content

Commit

Permalink
using path_spec here is unnecessary (and broken, at least for templat…
Browse files Browse the repository at this point in the history
…e renderers), let the configurator figure out what to do with various paths and resource specs
  • Loading branch information
mcdonc committed Nov 5, 2010
1 parent 75e3500 commit 7e4b3ba
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pyramid/zcml.py
Expand Up @@ -288,8 +288,6 @@ def route(_context,

view_permission = view_permission or permission
view_renderer = view_renderer or renderer
if view_renderer and '.' in view_renderer:
view_renderer = path_spec(_context, view_renderer)

if pattern is None:
pattern = path
Expand Down Expand Up @@ -368,9 +366,6 @@ def notfound(_context,
renderer=None,
wrapper=None):

if renderer and '.' in renderer:
renderer = path_spec(_context, renderer)

def register():
reg = get_current_registry()
config = Configurator(reg, package=_context.package)
Expand All @@ -391,9 +386,6 @@ def forbidden(_context,
renderer=None,
wrapper=None):

if renderer and '.' in renderer:
renderer = path_spec(_context, renderer)

def register():
reg = get_current_registry()
config = Configurator(reg, package=_context.package)
Expand Down Expand Up @@ -565,7 +557,6 @@ def static(_context, name, path, cache_max_age=3600,
permission='__no_permission_required__'):
""" Handle ``static`` ZCML directives
"""
path = path_spec(_context, path)
reg = get_current_registry()
config = Configurator(reg, package=_context.package)

Expand Down

0 comments on commit 7e4b3ba

Please sign in to comment.