1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-10-21 15:33:45 +03:00

Moving common "specializations" algos for services to a common base

This commit is contained in:
Adolfo Gómez García
2024-02-02 00:22:17 +01:00
parent c4a5beafd4
commit 1d569d009a
16 changed files with 732 additions and 513 deletions

View File

@@ -129,7 +129,7 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods
return self.fill_instance_fields(k, val)
except Exception as e:
logger.error('Error getting services for %s: %s', parent, e)
raise self.invalid_item_response() from e
raise self.invalid_item_response(repr(e)) from e
def get_row_style(self, parent: 'Model') -> types.ui.RowStyleInfo:
return types.ui.RowStyleInfo(prefix='row-maintenance-', field='maintenance_mode')