Skip to content

Commit

Permalink
Set variables 'here' and 'context' for PageTemplate instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed May 11, 2011
1 parent 62d21ad commit bcbae1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/z3c/pt/pagetemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def __call__(self, *args, **kwargs):

def _pt_get_context(self, instance, request, kwargs):
return dict(
context=instance,
here=instance,
options=kwargs,
request=request,
nothing=None,
Expand Down

0 comments on commit bcbae1b

Please sign in to comment.