0001-CustomView-reduce-number-of-select-with-no-criteria-.patch
wcs/formdef.py | ||
---|---|---|
1313 | 1313 |
custom_views = self._custom_views |
1314 | 1314 |
else: |
1315 | 1315 |
custom_views = [] |
1316 |
for view in get_publisher().custom_view_class.select(): |
|
1317 |
if view.match(user=None, formdef=self): |
|
1318 |
custom_views.append(view) |
|
1316 |
for view in get_publisher().custom_view_class.select( |
|
1317 |
[ |
|
1318 |
Equal('formdef_type', self.xml_root_node), |
|
1319 |
Equal('formdef_id', str(self.id)), |
|
1320 |
NotEqual('visibility', 'owner'), |
|
1321 |
] |
|
1322 |
): |
|
1323 |
custom_views.append(view) |
|
1319 | 1324 |
for view in custom_views: |
1320 | 1325 |
custom_views_element.append(view.export_to_xml(charset=charset)) |
1321 | 1326 | |
1322 |
- |