When paster is run, it looks for a .egg-info directory, and a paster_plugins.txt file inside of that. That file defines plugins that paster can utilize. The command "controller" is a plugin of the pylons project. Paster should find the "controller" command in my local Pylons installation. It is not. Why is it not? My shell output in previous post shows my directory structure setup correctly, and my paster_plugins.txt file setup correctly.
>From http://pythonpaste.org/script/developer?highlight=paster: "... So if you have a local command, how does it get enabled? If the person is running paster inside their project directory, paster will look in Project_Name.egg-info/paster_plugins.txt which is a list of project names (the name of your package) whose commands should be made available. ..." This is for frameworks, so frameworks can add commands to paster that only apply to projects that use that framework. On Jan 16, 8:45 am, jerry <[email protected]> wrote: > Of course, all the available paster commands are in the "Commands" > section -- > > $ paster -h > Usage: paster [paster_options] COMMAND [command_options] > > Options: > --version show program's version number and exit > --plugin=PLUGINS Add a plugin to the list of commands (plugins are > Egg > specs; will also require() the Egg) > -h, --help Show this help message > > Commands: > create Create the file layout for a Python distribution > help Display help > make-config Install a package and create a fresh config file/ > directory > points Show information about entry points > post Run a request for the described application > request Run a request for the described application > serve Serve the described application > setup-app Setup an application, given a config file > > And your question was? > > Jerry > > On Jan 16, 10:22 am, Bryan <[email protected]> wrote: > > > I am inside a Pylons project. The project is called jobtrax. > > The shell session in my previous post all occurs in the jobtrax > > project folder: > > > b...@brysrv:~/jobtrax$ paster controller home > > Command controller not known > > > On Jan 13, 7:39 pm, Jorge Vargas <[email protected]> wrote: > > > > On Thu, Jan 8, 2009 at 1:30 PM, Bryan <[email protected]> wrote: > > > > > When I run "paster controller <controller name>", i get an error: > > > > "Command controller not known" > > > > I have a .egg-info directory, and a paster_plugins.txt file in it with > > > > Pylons, WebHelpers, PasteScript inside on separate lines. > > > > I own all the files and directories, and am running the paster command > > > > inside of the distribution folder. > > > > > Why can't paster find my paster_plugins.txt settings? > > > > paster controller is a package command, which means it won't work > > > unless you are inside a "pylons project", I don't remember right now > > > what exactly determines that but it's a functionality of PasteScript --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
