On 6/7/07, voltron <[EMAIL PROTECTED]> wrote:
> I have meta.create_all() in my websetup.py file, this takes all the
> models in the models.py file and attempts to create a database based
> on the models found, can one code a conditional that asks beforehand
> exactly what databases it should create create? All I have are prints
> in my websetup but I dont know how to interact with meta.
If all else fails, you can always use the environment:
env SETUP_USER_DATABASE=1 SETUP_OTHER_DATABASE=0 paster setup-app foo.ini
In your websetup.py:
import os
...
if int(os.getenv('SETUP_USER_DATABASE', 0)):
self.setup_user_database()
...
Best Regards,
-jj
--
http://jjinux.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---