mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Give default _elemdict and _propdict attributes to OSA classes, so
we don't get infinite recursion for suites that don't have an application class. Also got rid of some tabs.
This commit is contained in:
		
							parent
							
								
									2cf9b956f7
								
							
						
					
					
						commit
						39c5d666c9
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		|  | @ -143,7 +143,9 @@ def decodeerror(arguments): | |||
| class TalkTo: | ||||
|     """An AE connection to an application""" | ||||
|     _signature = None   # Can be overridden by subclasses | ||||
|     _moduleName = None # Can be overridden by subclasses | ||||
|     _moduleName = None  # Can be overridden by subclasses | ||||
|     _elemdict = {}      # Can be overridden by subclasses | ||||
|     _propdict = {}      # Can be overridden by subclasses | ||||
|      | ||||
|     __eventloop_initialized = 0 | ||||
|     def __ensure_WMAvailable(klass): | ||||
|  | @ -284,8 +286,8 @@ def _set(self, _object, _attributes={}, **_arguments): | |||
|              | ||||
|     set = _set | ||||
| 
 | ||||
| 	# Magic glue to allow suite-generated classes to function somewhat | ||||
| 	# like the "application" class in OSA. | ||||
|     # Magic glue to allow suite-generated classes to function somewhat | ||||
|     # like the "application" class in OSA. | ||||
|      | ||||
|     def __getattr__(self, name): | ||||
|         if self._elemdict.has_key(name): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen