in pylons, is it possible to loop through all the controllers and their actions?
I want to create a javascript object that has all the controllers and their actions
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m writing this under the assumption that you’re trying to do a “table of contents” thing. If this is not the case and the below information is not helpful, my apologies.
If you know the controllers you want the actions for before-hand (that is to say, before runtime), you could write
for each controller and then have another controller (ContentsController, say) call the
.contents()method for each.