On Tue, Mar 4, 2008 at 9:03 AM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
>  i- if i call /:controller/:action and :action is undefined, i get
>  <type 'exceptions.NotImplementedError'>: Action u'abcdefg' is not
>  implemented
>   How do i push things like that to a 404 instead?  I can't find that
>  in the docs.

I think it will do that if you have 'debug=false' in the config; i.e.,
in production.ini.

>  ii- semi related -- shouldn't controllers/template.py have something
>  like
>   def index(self):
>      self.view(None)
>
>    or some sort of routing done that will handle not having an index
>  (ie , section 1 )?

I don't know anybody who uses controllers/template.py. I'm not sure
why it's in the default application
template or whether it's worth keeping.  I set specific routes to
certain controllers and actions, and do not let the user choose
:controller, :action, or *url.  (Except when linking to a large
directory of static images; then I use *url.)

If your real question is, "How do I configure routing for the home
page?", you define a route with path ''.

If you're wondering how to structure your application, give us a bit
more information about  your planned URLs and pages, and we can help
with the routing and actions.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to