Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 16 and Version 17 of 2.0/changelog


Ignore:
Timestamp:
08/29/08 15:32:08 (11 years ago)
Author:
mramm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 2.0/changelog

    v16 v17  
    4343+base_config.sa_auth.permission_class = model.Permission 
    4444}}} 
     45 
     46   *  TG2 no longer binds the database engine to the DBSession or metadata soyou can decide how you want to handle this (perhaps to re-bind the session dynamically to a different engine on a per-request basis, etc...). 
     47 
     48This is now done in the yourapp.model.init_model callback which iscalled when your app is loaded and passed a configured engine as a parameter. To upgrade an existing project just add one line to __init__ in you model directory, as shown here.  
     49 
     50{{{ 
     51def init_model(engine): 
     52   DBSession.configure(bind=enigne) # <-- this, add this 
     53}}} 
     54 
     55Of course if you're starthing a new project, this is done automatically for you by quickstart.  
    4556 
    4657   *  If you turn on new-style renderers, you must now provide the filename (and whatever path information is nessisary) in expose, including the .html extension. Furthermore, we're now regestring the template directory in the search path directly, so expose can be simpler. The old expose: