small fixes for updating

This commit is contained in:
Adolfo Gómez García 2018-11-13 13:18:19 +01:00
parent f2ff09a882
commit de45c24bbc
4 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">python3.5</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 3.0</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
<pydev_variables_property name="org.python.pydev.PROJECT_VARIABLE_SUBSTITUTION">
<key>DJANGO_MANAGE_LOCATION</key>
<value>src/manage.py</value>

View File

@ -171,7 +171,7 @@ class ServicesPools(ModelHandler):
for f in [{
'name': 'service_id',
'values': [gui.choiceItem(-1, '')] + gui.sortedChoices([gui.choiceItem(v.uuid, v.provider.name + '\\' + v.name) for v in Service.objects.all()]),
'values': [gui.choiceItem('', '')] + gui.sortedChoices([gui.choiceItem(v.uuid, v.provider.name + '\\' + v.name) for v in Service.objects.all()]),
'label': ugettext('Base service'),
'tooltip': ugettext('Service used as base of this service pool'),
'type': gui.InputField.CHOICE_TYPE,

View File

@ -41,7 +41,7 @@ from uds.core.ui import gui
import logging
__updated__ = '2017-10-16'
__updated__ = '2018-11-08'
logger = logging.getLogger(__name__)
@ -138,7 +138,7 @@ class OGService(Service):
"""
We check here form values to see if they are valid.
Note that we check them throught FROM variables, that already has been
Note that we check them FROM variables, that already has been
initialized by __init__ method of base class, before invoking this.
"""
if values is not None:

View File

@ -241,6 +241,7 @@ class BasicModelRest
put: (data, options) ->
console.log("Data", data)
options = options or {}
path = @putPath
path += "/" + options.id if options.id