Skip to content

Commit

Permalink
Revert hacky code to fix unicode errors
Browse files Browse the repository at this point in the history
  • Loading branch information
evolvedlight committed Aug 6, 2013
1 parent f7c2c03 commit 3a14288
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions pydashie/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def javascripts():
'assets/javascripts/rickshaw.min.js',
#'assets/javascripts/application.coffee',
'assets/javascripts/app.js',
'widgets/clock/clock.coffee',
#'widgets/clock/clock.coffee',
'widgets/number/number.coffee',
]
nizzle = True
Expand All @@ -49,7 +49,18 @@ def javascripts():

output.append(contents)

current_app.javascripts = '\n'.join(output)
if nizzle:
f = open('/tmp/foo.js', 'w')
for o in output:
print >> f, o
f.close()

f = open('/tmp/foo.js', 'rb')
output = f.read()
f.close()
current_app.javascripts = output
else:
current_app.javascripts = ''.join(output)


return Response(current_app.javascripts, mimetype='application/javascript')
Expand Down

0 comments on commit 3a14288

Please sign in to comment.