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

Ticket #1930: tg-devtools.patch

File tg-devtools.patch, 863 bytes (added by Gustavo, 4 years ago)

A patch to the default template, so that it includes the now mandatory configuration parameters. It also fixes a typo: base_config.sa_auth.user should be base_config.sa_auth.user_class

  • devtools/templates/turbogears/+package+/config/app_cfg.py_tmpl

     
    3333base_config.auth_backend = 'sqlalchemy' 
    3434base_config.sa_auth = Bunch() 
    3535base_config.sa_auth.dbsession = model.DBSession 
    36 base_config.sa_auth.user = model.User 
     36base_config.sa_auth.user_class = model.User 
    3737base_config.sa_auth.user_criterion = model.User.user_name 
    3838base_config.sa_auth.user_id_column = 'user_id' 
     39base_config.sa_auth.group_class = model.Group 
     40base_config.sa_auth.permission_class = model.Permission 
    3941 
    4042# override this if you would like to provide a different who plugin for  
    4143# managing login and logout of your application