#2013: [PATCH] Add an (example) database bootstrap command to commands.py in
quickstart template
-------------------------------------------------+--------------------------
 Reporter:  Chris Arndt                          |        Owner:  Chris Arndt
     Type:  enhancement                          |       Status:  assigned   
 Priority:  normal                               |    Milestone:  1.1        
Component:  Quickstart Templates                 |      Version:  1.1 HEAD   
 Severity:  normal                               |   Resolution:             
 Keywords:  quickstart, bootstrap, needs review  |  
-------------------------------------------------+--------------------------
Changes (by Chris Arndt):

  * status:  new => assigned

Comment:

 I attached an updated patch that now, in conjunction with r5736, provides
 support for Elixir models as well (but see #2047) and moves the model
 bootstrap functions to the `model.py` file.

 Despite of [http://groups.google.com/group/turbogears-
 trunk/browse_thread/thread/dd3b7b20990ce667 ideas on the mailing list] to
 provide a framework for moving the `boostrap` function into the TG core
 and provide a framework for adding user functions to run on bootstrapping,
 I now opted for just adding the bootstrap logic to the code generated by
 the quickstart templates, because I think that the data bootstrapping is
 highly specific to each application, so it should be user customizable to
 the maximum. Having the bootstrapping logic directly in the application
 code is IMHO the best way to do this.

 One thing that could be put in the `turbogears` package though is the code
 to create all database tables, since this is already used/needed in
 different places in !TurboGears, e.g. in `testutil` (and could be used in
 `command.sa_command` as well). I'm not sure where to put this best.
 `turbogears.util` and `turbogears.database` seem both valid candidates.
 Probably we should open another ticket for this issue.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2013#comment:5>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to