Skip to content

Commit 780bcf3

Browse files
committed
Merge branch 'master' of github.com:mitsuhiko/flask
2 parents 0566abc + 36a421b commit 780bcf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/signals.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ to the template::
5555
@contextmanager
5656
def captured_templates(app):
5757
recorded = []
58-
def record(template, context):
58+
def record(sender, template, context):
5959
recorded.append((template, context))
6060
template_rendered.connect(record, app)
6161
try:
@@ -87,7 +87,7 @@ its own which simplifies the example above::
8787

8888
def captured_templates(app):
8989
recorded = []
90-
def record(template, context):
90+
def record(sender, template, context):
9191
recorded.append((template, context))
9292
return template_rendered.connected_to(record, app)
9393

@@ -155,7 +155,7 @@ With Blinker 1.1 you can also easily subscribe to signals by using the new
155155
from flask import template_rendered
156156

157157
@template_rendered.connect_via(app)
158-
def when_template_rendered(template, context):
158+
def when_template_rendered(sender, template, context):
159159
print 'Template %s is rendered with %s' % (template.name, context)
160160

161161
Core Signals

0 commit comments

Comments
 (0)