On Jun 30, 2006, at 7:36 AM, askel wrote:

> I have a question and I hope somebody knows the answer.
> Is there any "official" way to get a list of all controllers?

Yes, by requesting the list from the Routes mapper. The following  
will work in an action (and in 0.8.x):

import routes

     def mycontrollers(self):
         mapper = routes.request_config().mapper
         clist = mapper.controller_scan(mapper.directory)
         m.write("The controllers are: %s" % clist)

HTH,
Ben

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to