aboutsummaryrefslogtreecommitdiffstats
path: root/examples/custom_contentviews.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/custom_contentviews.py')
-rw-r--r--examples/custom_contentviews.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/custom_contentviews.py b/examples/custom_contentviews.py
index 92fb6a58..5a63e2a0 100644
--- a/examples/custom_contentviews.py
+++ b/examples/custom_contentviews.py
@@ -62,9 +62,9 @@ class ViewPigLatin(contentviews.View):
pig_view = ViewPigLatin()
-def start(context):
- context.add_contentview(pig_view)
+def start():
+ contentviews.add(pig_view)
-def done(context):
- context.remove_contentview(pig_view)
+def done():
+ contentviews.remove(pig_view)