Пример #1
0
    def deserialize(self, properties):
        ControlBase.deserialize(self, properties)

        self.horizontal_headers = properties['horizontal_headers']
        self._read_only = properties['read_only'] == 1
        self._selected_index = properties['selected_index']
        self._select_entire_row = properties['select_entire_row'] == 1
Пример #2
0
 def deserialize(self, properties):
     ControlBase.deserialize(self, properties)
     self.search_field_key = properties.get('search_field_key', None)
     self.sort_by = properties.get('sort_by', [])
     self.filter_by = properties.get('filter_by', [])
     self._current_page = int(properties['pages']['current_page'])
     self._selected_row_id = properties.get('selected_row_id', -1)
    def deserialize(self, properties):
        value = properties.get('value', [])
        values = []
        for v in value:
            if len(v.strip()) > 0:
                values.append(v)
        properties.update({'value': values})

        ControlBase.deserialize(self, properties)
Пример #4
0
	def deserialize(self, properties):
		ControlBase.deserialize(self, properties)
		self.legend = properties[u'legend']
		self.value 	= properties[u'value']
		
Пример #5
0
    def deserialize(self, properties):
        properties.update({'value': properties.get('value', [])})

        ControlBase.deserialize(self, properties)
Пример #6
0
 def deserialize(self, properties):
     ControlBase.deserialize(self,properties)
     self._selected_index    = properties['selected_index']
     
Пример #7
0
 def deserialize(self, properties):
     ControlBase.deserialize(self, properties)
     self._value = []
     self.action_param = properties.get('action_param', None)
Пример #8
0
 def deserialize(self, properties):
     ControlBase.deserialize(self, properties)
     self._filename = properties['filename']
     self.value = self._filename