On Monday 02 November 2009 13:33:59 yuhl wrote: > Hello, > > I'd like to have an TG project which could have also a CLI at the same > time. Is there a possibilities to split the Controller so that we can > use through the web and through a CLI ?
You don't say which TG version you are planning to use, so we can't be more specific. Some general remarks: - it is possible to use model and utility code outside of TG, there are recipes how to do that. - your can *not* use controllers in a CLI (or at least not useful, and not without major performance drawbacks). You can't even easily import from them. Instead, arrange your project so that you have model and utility or business logic code in separate modules, and both controllers and your CLI app fetch from those. Then it's perfectly fine, we have similar setups without a hitch. Diez --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

