Skip to content

Instantly share code, notes, and snippets.

@jasongrout
Created June 27, 2012 19:30
Show Gist options
  • Select an option

  • Save jasongrout/3006260 to your computer and use it in GitHub Desktop.

Select an option

Save jasongrout/3006260 to your computer and use it in GitHub Desktop.
diff --git a/flask_version/worksheet_listing.py b/flask_version/worksheet_listing.py
index 83af90c..5e2680b 100644
--- a/flask_version/worksheet_listing.py
+++ b/flask_version/worksheet_listing.py
@@ -142,11 +142,13 @@ def empty_trash():
@worksheet_listing.route('/pub/')
@guest_or_login_required
def pub():
- return render_worksheet_list(request.args, pub=True, username=g.username)
+ return current_app.message("Public worksheets are currently disabled.")
+ #return render_worksheet_list(request.args, pub=True, username=g.username)
@worksheet_listing.route('/home/pub/<id>/')
@guest_or_login_required
def public_worksheet(id):
+ return current_app.message("Public worksheets are currently disabled.")
from worksheet import pub_worksheet
filename = 'pub/%s'%id
if g.notebook.conf()['pub_interact']:
@@ -167,6 +169,7 @@ def public_worksheet(id):
@worksheet_listing.route('/home/pub/<id>/download/<path:title>')
def public_worksheet_download(id, title):
+ return current_app.message("Public worksheets are currently disabled.")
from worksheet import unconditional_download
worksheet_filename = "pub" + "/" + id
try:
@@ -177,6 +180,7 @@ def public_worksheet_download(id, title):
@worksheet_listing.route('/home/pub/<id>/cells/<path:filename>')
def public_worksheet_cells(id, filename):
+ return current_app.message("Public worksheets are currently disabled.")
worksheet_filename = "pub" + "/" + id
try:
worksheet = g.notebook.get_worksheet_with_filename(worksheet_filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment