fixed a couple of literals

This commit is contained in:
Adolfo Gómez García 2018-01-09 22:36:26 +01:00
parent 7ec92d6005
commit 0242eaaa54
2 changed files with 3 additions and 4 deletions

View File

@ -182,7 +182,7 @@ class ServicesPools(ModelHandler):
'name': 'allow_users_remove',
'value': False,
'label': ugettext('Allow removal by users'),
'tooltip': ugettext('If active, the user will be allowed to remove the service "manually". Be care with this, because the user will have the "poser" to delete it\'s own service'),
'tooltip': ugettext('If active, the user will be allowed to remove the service "manually". Be careful with this, because the user will have the "power" to delete it\'s own service'),
'type': gui.InputField.CHECKBOX_TYPE,
'order': 111,
'tab': ugettext('Advanced'),
@ -206,7 +206,7 @@ class ServicesPools(ModelHandler):
'name': 'servicesPoolGroup_id',
'values': [gui.choiceImage(-1, _('Default'), DEFAULT_THUMB_BASE64)] + gui.sortedChoices([gui.choiceImage(v.uuid, v.name, v.thumb64) for v in ServicesPoolGroup.objects.all()]),
'label': ugettext('Pool group'),
'tooltip': ugettext('Pool group for this pool (for pool clasify on display)'),
'tooltip': ugettext('Pool group for this pool (for pool classify on display)'),
'type': gui.InputField.IMAGECHOICE_TYPE,
'order': 121,
'tab': ugettext('Display'),

View File

@ -71,7 +71,7 @@ class Transports(ModelHandler):
'name': 'nets_positive',
'value': True,
'label': ugettext('Network access'),
'tooltip': ugettext('If checked, the transport will be enabled for the selected networks.If unchecked, transport will be disabled for selected networks'),
'tooltip': ugettext('If checked, the transport will be enabled for the selected networks. If unchecked, transport will be disabled for selected networks'),
'type': 'checkbox',
'order': 100, # At end
}), {
@ -115,7 +115,6 @@ class Transports(ModelHandler):
def beforeSave(self, fields):
fields['allowed_oss'] = ','.join(fields['allowed_oss'])
def afterSave(self, item):
try:
networks = self._params['networks']