summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/grokkedapp/another.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-10-25 10:29:31 -0400
committerChris McDonough <chrism@plope.com>2010-10-25 10:29:31 -0400
commit64372401084889a440c9d990a0febc221e3e4b5c (patch)
treec8939a341505d19f19fa6918d264b4e1d95326f8 /repoze/bfg/tests/grokkedapp/another.py
parentc8e78c2037806f3e5dab57de635bf80865b7061d (diff)
downloadpyramid-64372401084889a440c9d990a0febc221e3e4b5c.tar.gz
pyramid-64372401084889a440c9d990a0febc221e3e4b5c.tar.bz2
pyramid-64372401084889a440c9d990a0febc221e3e4b5c.zip
first pass at converting bfg to pyramid namespace
Diffstat (limited to 'repoze/bfg/tests/grokkedapp/another.py')
-rw-r--r--repoze/bfg/tests/grokkedapp/another.py62
1 files changed, 0 insertions, 62 deletions
diff --git a/repoze/bfg/tests/grokkedapp/another.py b/repoze/bfg/tests/grokkedapp/another.py
deleted file mode 100644
index 7dda1d579..000000000
--- a/repoze/bfg/tests/grokkedapp/another.py
+++ /dev/null
@@ -1,62 +0,0 @@
-from repoze.bfg.view import bfg_view
-
-@bfg_view(name='another')
-def grokked(context, request):
- return 'another_grokked'
-
-@bfg_view(request_method='POST', name='another')
-def grokked_post(context, request):
- return 'another_grokked_post'
-
-@bfg_view(name='another_stacked2')
-@bfg_view(name='another_stacked1')
-def stacked(context, request):
- return 'another_stacked'
-
-class stacked_class(object):
- def __init__(self, context, request):
- self.context = context
- self.request = request
-
- def __call__(self):
- return 'another_stacked_class'
-
-stacked_class = bfg_view(name='another_stacked_class1')(stacked_class)
-stacked_class = bfg_view(name='another_stacked_class2')(stacked_class)
-
-class oldstyle_grokked_class:
- def __init__(self, context, request):
- self.context = context
- self.request = request
-
- def __call__(self):
- return 'another_oldstyle_grokked_class'
-
-oldstyle_grokked_class = bfg_view(name='another_oldstyle_grokked_class')(
- oldstyle_grokked_class)
-
-class grokked_class(object):
- def __init__(self, context, request):
- self.context = context
- self.request = request
-
- def __call__(self):
- return 'another_grokked_class'
-
-grokked_class = bfg_view(name='another_grokked_class')(grokked_class)
-
-class Foo(object):
- def __call__(self, context, request):
- return 'another_grokked_instance'
-
-grokked_instance = Foo()
-grokked_instance = bfg_view(name='another_grokked_instance')(grokked_instance)
-
-# ungrokkable
-
-A = 1
-B = {}
-
-def stuff():
- """ """
-