Karl Guertin wrote:

> These are called command plugins and they are currently not
> documented. This will be one of the last things documented because I
> don't have much of a personal motivation to learn this part of the
> framework.

There is really not much to it.

In order to be visible to tg-admin plugin need to be registered in
setup.py, [turbogears.command] section. A 'plugin' is just a class that
implements 'run' interface:

class FooCommand:
 def run(self):
   print 'foo indeed'

There is some utility code defined in turbogears.command.base module
though it is not documented indeed and really bare.

Max.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to