On Thursday 04 September 2008 01:59:47 Doug Latornell wrote: > Something's not quite right, I think, because > > $ paster quickstart Foo > $ paster quickstart -e Foo > $ paster quickstart --elixir > > all yield a model/__init__.py file with import elixir, etc. in it. I > would expect the last 2 to do that, but the first command should > produce an app without elixir. > > I had a quick look at r5349 quickstart.py and can't see what the > problem is. >
Me neither. Debugging into right before the paster is started, I get these parameters (w/o elixir of course): ['--template=turbogears2', 'Foo', 'sqlalchemy=True', 'elixir=False', 'sqlobject=False', 'identity=sqlalchemy', 'package=foo', 'tgversion=1.9.7a4dev-r5287'] So it appears as if the pure fact that I included elixir in the templates made these appear. Now I wonder: given that there seems to be no distinction between boolean and strings, might it be that we have a case of elixir = "False" which is of course True in an expression like this? if elixir: Is there a way/need to declare an argument as being boolean? Diez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
