mirror of
				https://github.com/yweber/lodel2.git
				synced 2025-10-31 19:49:02 +01:00 
			
		
		
		
	Add a fogotten file
This commit is contained in:
		
					parent
					
						
							
								8d4b764472
							
						
					
				
			
			
				commit
				
					
						742e77225a
					
				
			
		
					 1 changed files with 26 additions and 0 deletions
				
			
		
							
								
								
									
										26
									
								
								lodel/plugins/multisite/confspecs.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								lodel/plugins/multisite/confspecs.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | |||
| from lodel.context import LodelContext | ||||
| LodelContext.expose_modules(globals(), { | ||||
|     'lodel.settings.validator': ['SettingValidator']}) | ||||
| 
 | ||||
| #Define a minimal confspec used by multisite loader | ||||
| LODEL2_CONFSPECS = { | ||||
|     'lodel2': { | ||||
|         'debug': (True, SettingValidator('bool')) | ||||
|     }, | ||||
|     'lodel2.logging.*' : { | ||||
|         'level': (  'ERROR', | ||||
|                     SettingValidator('loglevel')), | ||||
|         'context': (    False, | ||||
|                         SettingValidator('bool')), | ||||
|         'filename': (   None, | ||||
|                         SettingValidator('errfile', none_is_valid = True)), | ||||
|         'backupcount': (    10, | ||||
|                             SettingValidator('int', none_is_valid = False)), | ||||
|         'maxbytes': (   1024*10, | ||||
|                         SettingValidator('int', none_is_valid = False)), | ||||
|     }, | ||||
|     'lodel2.datasources.*': { | ||||
|         'read_only': (False, SettingValidator('bool')), | ||||
|         'identifier': ( None, SettingValidator('string')), | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yann
				Yann