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.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/sugar_network_webui/app.py b/sugar_network_webui/app.py
index 16e47f3..6a8f617 100644
--- a/sugar_network_webui/app.py
+++ b/sugar_network_webui/app.py
@@ -51,6 +51,8 @@ app.config['BABEL_DEFAULT_LOCALE'] = 'en'
app.config['BABEL_DEFAULT_TIMEZONE'] = 'America/Lima'
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
+from feeds import *
+
from cursors import *
from dialogs import *
@@ -164,6 +166,7 @@ def before_request():
g.Artifacts = home_mount.Artifacts
g.Projects = home_mount.Projects
g.autocomplete_Contexts = home_mount.autocomplete_Contexts
+ g.feed_Contexts = home_mount.feed_Contexts
g.Questions = home_mount.Questions
g.Ideas = home_mount.Ideas
g.Problems = home_mount.Problems
@@ -171,6 +174,7 @@ def before_request():
g.Comments = home_mount.Comments
g.Reviews = home_mount.Reviews
g.Resources = home_mount.Resources
+ g.feed_Resources = home_mount.feed_Resources
else:
g.client = network_mount.client
g.Contexts = network_mount.Contexts
@@ -178,6 +182,7 @@ def before_request():
g.Artifacts = network_mount.Artifacts
g.Projects = network_mount.Projects
g.autocomplete_Contexts = network_mount.autocomplete_Contexts
+ g.feed_Contexts = network_mount.feed_Contexts
g.Questions = network_mount.Questions
g.Ideas = network_mount.Ideas
g.Problems = network_mount.Problems
@@ -185,6 +190,7 @@ def before_request():
g.Comments = network_mount.Comments
g.Reviews = network_mount.Reviews
g.Resources = network_mount.Resources
+ g.feed_Resources = home_mount.feed_Resources
def incoming(event):
@@ -722,9 +728,9 @@ def solution_browser(resource_guid=None):
@app.route('/context/view/<context_guid>/<query>')
@app.route('/context/view/<context_guid>')
-@app.route('/context/questions/<context_guid>')
-@app.route('/context/ideas/<context_guid>')
-@app.route('/context/problems/<context_guid>')
+@app.route('/context/questions/<context_guid>', endpoint='context_question_browser')
+@app.route('/context/ideas/<context_guid>', endpoint='context_idea_browser')
+@app.route('/context/problems/<context_guid>', endpoint='context_problem_browser')
@app.route('/context/artifacts/<context_guid>')
@app.route('/context/gallery/<context_guid>')
@app.route('/context/all/<context_guid>')