projects
/
osm
/
LW-UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vim account creation with additional config param; fix Bug 489
[osm/LW-UI.git]
/
vimhandler
/
views.py
diff --git
a/vimhandler/views.py
b/vimhandler/views.py
index
817a052
..
d350704
100644
(file)
--- a/
vimhandler/views.py
+++ b/
vimhandler/views.py
@@
-57,6
+57,10
@@
def create(request):
if str(k).startswith('config_') and len(v) > 0:
config_key = k[7:]
vim_data['config'][config_key] = v
if str(k).startswith('config_') and len(v) > 0:
config_key = k[7:]
vim_data['config'][config_key] = v
+ if 'additional_conf' in new_vim_dict:
+ additional_conf_dict = json.loads(new_vim_dict['additional_conf'])
+ for k,v in additional_conf_dict.items():
+ vim_data['config'][k] = v
print vim_data
result = client.vim_create(vim_data)
# TODO 'vim:show', to_redirect=True, vim_id=vim_id
print vim_data
result = client.vim_create(vim_data)
# TODO 'vim:show', to_redirect=True, vim_id=vim_id