"milde" <[EMAIL PROTECTED]> writes: > Basically, what I want is a system where commands/quickstart.py just > facilitates the creation of projects from project templates and nothing > more. All handling of command line arguments and dialogs (do you want > X? [yes/no]) should be in the templates themselves.
You can use paste to create those. The quickstart is actually a kind of wrapper to it, including some logic to insert or not some parts of the templates inside the created project. If you copy the existing templates and customize them to your needs and point them to paste, then you'll have what you want. Abolishing conditionals and dialogs should be easily done with enough templates and working with how you'd glue them together. > Obviously you can do this now, but I haven't found any obvious way to > add command line switches or arguments, and it doesn't seem to be > possible to not use the two default quickstart questions. If all of > this were defined by the templates, templates that subclass other > templates could pick and choose what they want to inherit from the base > templates in this respect (instead of just picking and choosing files). You can use paste directly. There's no difference in the end result if you customize your templates the right way (e.g. by copying and removing what you don't want from TG's templates). (...) > interactive question is automatically generated to go with it. If you > answer an option through the command line, the interactive dialog > doesn't appear, but there should also be an option to ignore all > interactive dialogs and have them use defaults. > > Do any of you think this is a good idea? If it is, I'll go ahead and > start on an implementation. I think something like this would be great > to get in before a 1.0 release. I believe that just the ignore the interactive prompts is interesting. And even that can be done directly with paste... > I also think the quickstart template itself could use some improving, Such as... ? > but I think that's something that should come after any changes to the > quickstart system itself. All of these thoughts I've had on the system > has come from trying to create my own project templates. Right now I'm > using my own "greatstart" template for all of my projects, as well as a > subtemplate of greatstart for applications at work. If any of you want > to look at it, you can find it here: > http://dackz.net/etc/greatstart-0.3.tar.bz2 Can you send us some basic differences between yours and TG's? -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

