mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +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: | class TalkTo: | ||||||
|     """An AE connection to an application""" |     """An AE connection to an application""" | ||||||
|     _signature = None   # Can be overridden by subclasses |     _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 |     __eventloop_initialized = 0 | ||||||
|     def __ensure_WMAvailable(klass): |     def __ensure_WMAvailable(klass): | ||||||
|  | @ -284,9 +286,9 @@ def _set(self, _object, _attributes={}, **_arguments): | ||||||
|              |              | ||||||
|     set = _set |     set = _set | ||||||
| 
 | 
 | ||||||
| 	# Magic glue to allow suite-generated classes to function somewhat |     # Magic glue to allow suite-generated classes to function somewhat | ||||||
| 	# like the "application" class in OSA. |     # like the "application" class in OSA. | ||||||
| 	 |      | ||||||
|     def __getattr__(self, name): |     def __getattr__(self, name): | ||||||
|         if self._elemdict.has_key(name): |         if self._elemdict.has_key(name): | ||||||
|             cls = self._elemdict[name] |             cls = self._elemdict[name] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen