fix edbob.init() call in pyramid app
This commit is contained in:
		
							parent
							
								
									7a4fb727c9
								
							
						
					
					
						commit
						fb3c5c5ade
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -34,6 +34,9 @@ def main(global_config, **settings):
 | 
			
		|||
    
 | 
			
		||||
    config = Configurator(settings=settings)
 | 
			
		||||
 | 
			
		||||
    # Configure edbob
 | 
			
		||||
    edbob.init('{{package}}', os.path.abspath(settings['edbob.config']))
 | 
			
		||||
 | 
			
		||||
    # Configure session
 | 
			
		||||
    config.include('pyramid_beaker')
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -50,8 +53,4 @@ def main(global_config, **settings):
 | 
			
		|||
    config.include('{{package}}.pyramid.subscribers')
 | 
			
		||||
    config.include('{{package}}.pyramid.views')
 | 
			
		||||
 | 
			
		||||
    # Configure edbob.  Note that this is done last, primarily to allow logging
 | 
			
		||||
    # to leverage edbob's config inheritance.
 | 
			
		||||
    edbob.init('{{package}}', os.path.abspath(settings['edbob.config']))
 | 
			
		||||
 | 
			
		||||
    return config.make_wsgi_app()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue