Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fixed a bug where leafs filtered by LeafFilter whould not return its …
Browse files Browse the repository at this point in the history
…canonical leaf upon solving its path
  • Loading branch information
rsms committed Jul 31, 2009
1 parent 523341f commit 413ad0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/smisk/mvc/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ def _get_template(node):
def _path_to(node, resolve_template):
if isinstance(node, (MethodType, FunctionType)):
# Leaf is Method or Function.
from smisk.mvc.routing import _find_canonical_leaf
node = _find_canonical_leaf(node, node)
# Function supported because methods might be wrapped in functions
# which in those cases should have an im_class attribute.
if getattr(node, 'im_class', None) is None \
Expand Down

0 comments on commit 413ad0f

Please sign in to comment.