1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-11-09 04:24:11 +03:00

fixes for 3.7 (random found ones)

This commit is contained in:
Adolfo Gómez García
2019-08-14 11:00:21 +02:00
parent 171b5f5a48
commit 882a8ad2c9
4 changed files with 46 additions and 46 deletions

View File

@@ -58,7 +58,7 @@ class ServicesPoolGroups(ModelHandler):
table_title = _('Services Pool Groups')
table_fields = [
{'priority': {'title': _('Priority'), 'type': 'numeric', 'width': '6em'}},
{'thumb': {'title': _('Image'), 'visible': True, 'type': 'image', 'width': '96px' }},
{'thumb': {'title': _('Image'), 'visible': True, 'type': 'image', 'width': '96px'}},
{'name': {'title': _('Name')}},
{'comments': {'title': _('Comments')}},
]
@@ -79,13 +79,13 @@ class ServicesPoolGroups(ModelHandler):
g = self.addDefaultFields([], ['name', 'comments', 'priority'])
for f in [{
'name': 'image_id',
'values': [gui.choiceImage(-1, '--------', DEFAULT_THUMB_BASE64)] + gui.sortedChoices([gui.choiceImage(v.uuid, v.name, v.thumb64) for v in Image.objects.all()]),
'label': ugettext('Associated Image'),
'tooltip': ugettext('Image assocciated with this service'),
'type': gui.InputField.IMAGECHOICE_TYPE,
'order': 102,
}]:
'name': 'image_id',
'values': [gui.choiceImage(-1, '--------', DEFAULT_THUMB_BASE64)] + gui.sortedChoices([gui.choiceImage(v.uuid, v.name, v.thumb64) for v in Image.objects.all()]),
'label': ugettext('Associated Image'),
'tooltip': ugettext('Image assocciated with this service'),
'type': gui.InputField.IMAGECHOICE_TYPE,
'order': 102,
}]:
self.addField(g, f)
return g