Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network_webui/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network_webui/app.py')
-rw-r--r--sugar_network_webui/app.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/sugar_network_webui/app.py b/sugar_network_webui/app.py
index 56e87ea..95e2bb7 100644
--- a/sugar_network_webui/app.py
+++ b/sugar_network_webui/app.py
@@ -236,8 +236,7 @@ def moon(context=None):
clone = request.args.get('clone', None)
guid = context[5:] # remove "moon-" from id
- Client.call('PUT', ['context', guid], 'clone',
- content=1 if clone == 'true' else 0)
+ Client.call('PUT', ['context', guid], 'clone', clone == 'true', spawn=True)
return jsonify(clone=clone)
@@ -291,7 +290,7 @@ def new_resource(context_guid=None):
context = g.Contexts[offset]
else:
context = g.client.Context(context_guid,
- reply=['title', 'favorite', 'clone'])
+ reply=['title', 'layer'])
return render_template('resource-form.html', context=context)
@@ -617,7 +616,7 @@ def project_browser(context_guid=None):
template = 'context-view.html'
context = g.client.Context(context_guid,
reply=['guid', 'title', 'description', 'author',
- 'summary', 'favorite', 'clone', 'type'])
+ 'summary', 'layer', 'type'])
try:
session['last_context_title'] = context['title']
except NotFound:
@@ -664,7 +663,7 @@ def reviews_browser(resource_guid=None, review_guid=None):
template = 'context-view.html'
context = g.client.Context(resource_guid,
reply=['guid', 'title', 'description', 'author',
- 'summary', 'favorite', 'clone', 'type'])
+ 'summary', 'layer', 'type'])
try:
session['last_context_title'] = context['title']
except NotFound:
@@ -710,7 +709,7 @@ def solution_browser(resource_guid=None):
try:
context = g.client.Context(resource['context'],
reply=['guid', 'title', 'description', 'summary', 'author',
- 'favorite', 'clone', 'type'])
+ 'layer', 'type'])
except:
return redirect(url_for('resource_list'))
@@ -771,7 +770,7 @@ def context_resource_browser(context_guid=None, query=None):
context = resource_cursor[offset]
else:
context = g.client.Context(context_guid, reply=['guid', 'title',
- 'author', 'summary', 'description', 'favorite', 'clone', 'type'])
+ 'author', 'summary', 'description', 'layer', 'type'])
try:
session['last_context'] = context['guid']
session['last_context_title'] = context['title']