Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion calligraphic_rulings/ruling/ruling.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def status_message(opts, args):

def main(opts, args):
if opts.landscape and opts.radial:
print "Ignoring radial for landscape mode"
print("Ignoring radial for landscape mode")
opts.radial = False
pagesize = page_sizes[opts.pagesize]
if opts.landscape:
Expand Down
8 changes: 4 additions & 4 deletions calligraphic_rulings/web/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import StringIO
import io

from ruling import main
from .revproxy import ReverseProxied
from flask_reverse_proxy import ReverseProxied

from flask import Flask, request, render_template, send_file, make_response

Expand Down Expand Up @@ -32,10 +32,10 @@ def pdf():
('distance', int),
('landscape', bool),
('pagesize', str)]:
print i, " ", request.args.get(i,'')
print(i, " ", request.args.get(i,''))
setattr(cfg, i, typ(request.args.get(i,'')))
fname = request.args.get('title','rulings').replace(" ","_").lower() + ".pdf"
s = StringIO.StringIO()
s = io.StringIO()
main(cfg, [None, s])

resp = make_response(s.getvalue())
Expand Down