This looks to be a problem with the docs -- which are being rewritten. 

View Callables can be set up at least 3 ways (more?)- that page only 
explains 2.

1. Functions
    
    def hello_world(request):
        return Response("Hello, World")

2. Classes

    class HelloWorld(object):
         def __init__(self,request):
              self.request = request
         def __call__(self):
              return Response("Hello, World")

3. Object Methods ( class based views )

    class Foo(object):
         def __init__(self,request):
              self.request = request

         def hello_world(self):
              return Response("Hello, World")



-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to