[gen] Bugfixes.
This commit is contained in:
		
							parent
							
								
									50bd996c3b
								
							
						
					
					
						commit
						6cd64fdc50
					
				
					 4 changed files with 10 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -575,12 +575,12 @@ class Field:
 | 
			
		|||
        if self.isEmptyValue(obj, value): return ''
 | 
			
		||||
        return value
 | 
			
		||||
 | 
			
		||||
    def getShownValue(self, obj, value, showChanges=False):
 | 
			
		||||
    def getShownValue(self, obj, value, showChanges=False, language=None):
 | 
			
		||||
        '''Similar to m_getFormattedValue, but in some contexts, only a part of
 | 
			
		||||
           p_value must be shown. For example, sometimes we need to display only
 | 
			
		||||
           a language-specific part of a multilingual field (see overridden
 | 
			
		||||
           method in string.py).'''
 | 
			
		||||
        return self.getFormattedValue(obj, value, showChanges)
 | 
			
		||||
        return self.getFormattedValue(obj, value, showChanges, language)
 | 
			
		||||
 | 
			
		||||
    def getXmlValue(self, obj, value):
 | 
			
		||||
        '''This method allows a developer to customize the value that will be
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue