mirror of
				https://github.com/yweber/lodel2.git
				synced 2025-10-31 19:49:02 +01:00 
			
		
		
		
	New class MlNamedObject
This commit is contained in:
		
					parent
					
						
							
								3394543af8
							
						
					
				
			
			
				commit
				
					
						8844197c57
					
				
			
		
					 2 changed files with 15 additions and 0 deletions
				
			
		
							
								
								
									
										0
									
								
								lodel/mlnamedobject/__init__.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								lodel/mlnamedobject/__init__.py
									
										
									
									
									
										Normal file
									
								
							
							
								
								
									
										15
									
								
								lodel/mlnamedobject/mlnamedobject.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								lodel/mlnamedobject/mlnamedobject.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| #-*- coding:utf-8 -*- | ||||
| 
 | ||||
| from lodel.context import LodelContext | ||||
| LodelContext.expose_modules(globals(), { | ||||
|     'lodel.utils.mlstring': ['MlString'], | ||||
|     'lodel.logger': 'logger', | ||||
|     'lodel.settings': ['Settings'], | ||||
|     'lodel.settings.utils': ['SettingsError']}) | ||||
| 
 | ||||
| class MlNamedObject(object): | ||||
|      | ||||
|     def __init__(self, display_name, help_text): | ||||
|         self.display_name = MlString(display_name) | ||||
|         self.help_text = MlString(help_text) | ||||
|          | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 prieto
				prieto