[gen] Removed obsolete fields 'enableAdvancedSearchX' generated on the tool.
This commit is contained in:
		
							parent
							
								
									5a50d07e54
								
							
						
					
					
						commit
						b12ea0a64d
					
				
					 4 changed files with 1 additions and 13 deletions
				
			
		| 
						 | 
					@ -443,12 +443,6 @@ class ToolClassDescriptor(ClassDescriptor):
 | 
				
			||||||
        '''Adds, for class p_classDescr, attributes related to the search
 | 
					        '''Adds, for class p_classDescr, attributes related to the search
 | 
				
			||||||
           functionality for class p_classDescr.'''
 | 
					           functionality for class p_classDescr.'''
 | 
				
			||||||
        className = classDescr.name
 | 
					        className = classDescr.name
 | 
				
			||||||
        # Field that defines if advanced search is enabled for class
 | 
					 | 
				
			||||||
        # p_classDescr or not.
 | 
					 | 
				
			||||||
        fieldName = 'enableAdvancedSearchFor%s' % className
 | 
					 | 
				
			||||||
        fieldType = gen.Boolean(default=True, page='userInterface',
 | 
					 | 
				
			||||||
                                group=classDescr.klass.__name__)
 | 
					 | 
				
			||||||
        self.addField(fieldName, fieldType)
 | 
					 | 
				
			||||||
        # Field that defines how many columns are shown on the custom search
 | 
					        # Field that defines how many columns are shown on the custom search
 | 
				
			||||||
        # screen.
 | 
					        # screen.
 | 
				
			||||||
        fieldName = 'numberOfSearchColumnsFor%s' % className
 | 
					        fieldName = 'numberOfSearchColumnsFor%s' % className
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -211,8 +211,7 @@ setattr(Page, Page.pages.back.attribute, Page.pages.back)
 | 
				
			||||||
# The Tool class ---------------------------------------------------------------
 | 
					# The Tool class ---------------------------------------------------------------
 | 
				
			||||||
# Prefixes of the fields generated on the Tool.
 | 
					# Prefixes of the fields generated on the Tool.
 | 
				
			||||||
toolFieldPrefixes = ('podTemplate', 'formats', 'resultColumns',
 | 
					toolFieldPrefixes = ('podTemplate', 'formats', 'resultColumns',
 | 
				
			||||||
                     'enableAdvancedSearch', 'numberOfSearchColumns',
 | 
					                     'numberOfSearchColumns', 'searchFields')
 | 
				
			||||||
                     'searchFields')
 | 
					 | 
				
			||||||
defaultToolFields = ('title', 'mailHost', 'mailEnabled', 'mailFrom',
 | 
					defaultToolFields = ('title', 'mailHost', 'mailEnabled', 'mailFrom',
 | 
				
			||||||
                     'appyVersion', 'dateFormat', 'hourFormat', 'users',
 | 
					                     'appyVersion', 'dateFormat', 'hourFormat', 'users',
 | 
				
			||||||
                     'connectedUsers', 'groups', 'translations',
 | 
					                     'connectedUsers', 'groups', 'translations',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -222,7 +222,6 @@ CONFIG = "Configuration panel for product '%s'"
 | 
				
			||||||
MSG_podTemplate = "POD template for field '%s'"
 | 
					MSG_podTemplate = "POD template for field '%s'"
 | 
				
			||||||
MSG_formats = "Output format(s) for field '%s'"
 | 
					MSG_formats = "Output format(s) for field '%s'"
 | 
				
			||||||
MSG_resultColumns = "Columns to display while showing query results"
 | 
					MSG_resultColumns = "Columns to display while showing query results"
 | 
				
			||||||
MSG_enableAdvancedSearch = "Enable advanced search"
 | 
					 | 
				
			||||||
MSG_numberOfSearchColumns = "Number of search columns"
 | 
					MSG_numberOfSearchColumns = "Number of search columns"
 | 
				
			||||||
MSG_searchFields = "Search fields"
 | 
					MSG_searchFields = "Search fields"
 | 
				
			||||||
POD_ASKACTION = 'Trigger related action'
 | 
					POD_ASKACTION = 'Trigger related action'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -101,10 +101,6 @@ class ToolWrapper(AbstractWrapper):
 | 
				
			||||||
               Stores the list of columns that must be shown when displaying
 | 
					               Stores the list of columns that must be shown when displaying
 | 
				
			||||||
               instances of a given root p_klass.
 | 
					               instances of a given root p_klass.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
           "enableAdvancedSearch"
 | 
					 | 
				
			||||||
               Determines if the advanced search screen must be enabled for
 | 
					 | 
				
			||||||
               p_klass.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
           "numberOfSearchColumns"
 | 
					           "numberOfSearchColumns"
 | 
				
			||||||
               Determines in how many columns the search screen for p_klass
 | 
					               Determines in how many columns the search screen for p_klass
 | 
				
			||||||
               is rendered.
 | 
					               is rendered.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue