Hi and thanks.


On Saturday 14 November 2015 07:22 PM, Mike Orr wrote:
# myapp/views/accounts.py
class AccountView(object):
     def __init__(self, request):
         self.request = request

     def hello(self):
         ...

This is pretty clear.

# myapp/views/__init__.py
def includeme(config):
     import myapp.views.accounts
     config.add_view(myapp.views.accounts.AccountView,
         attr="hello", route_name="home")

What is home in this line?  is it the route name?

# myapp/routes.py
def includeme(config):
     config.add_route("hello", "/hello")

I again don't see where the home attribute fits in here, I seem to get lost.

# myapp/__init__.py
def main(settings):
     import myapp.routes
     import myapp.views
     ...
     config.include(myapp.routes)
     config.include(myapp.views)


This is clear too.

Happy hacking.
Krishnakant.

--
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/d/optout.

Reply via email to