The ControllerCommand class is accessible via the pylons.commands module.
The Controller command will create the standard controller template file and associated functional test to speed creation of controllers.
Example usage:
yourproj% paster controller comments Creating yourproj/yourproj/controllers/comments.py Creating yourproj/yourproj/tests/functional/test_comments.py
If you'd like to have controllers underneath a directory, just include the path as the controller name and the necessary directories will be created for you:
yourproj% paster controller admin/trackback Creating yourproj/controllers/admin Creating yourproj/yourproj/controllers/admin/trackback.py Creating yourproj/yourproj/tests/functional/test_admin_trackback.py
"\nCreate a Controller and accompanying functional test\n\n The Controller command will create the standard controller template\n file and associated functional test to speed creation of controllers.\n\n Example usage::\n\n yourproj% paster controller comments\n Creating yourproj/yourproj/controllers/comments.py\n Creating yourproj/yourproj/tests/functional/test_comments.py\n\n If you'd like to have controllers underneath a directory, just include\n the path as the controller name and the necessary directories will be\n created for you::\n\n yourproj% paster controller admin/trackback\n Creating yourproj/controllers/admin\n Creating yourproj/yourproj/controllers/admin/trackback.py\n Creating yourproj/yourproj/tests/functional/test_admin_trackback.py\n "
See the source for more information.