link to pythonanywhere

This commit is contained in:
mdipierro
2013-10-30 08:59:55 -05:00
parent c89ed53be1
commit 1474a4fe79
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.10.27.23.22.02
Version 2.7.4-stable+timestamp.2013.10.30.08.58.58
@@ -42,7 +42,7 @@ random.shuffle(quotes)
<div class="span4" style="text-align:center">
<a href="http://www.infoworld.com/slideshow/24605/infoworlds-2012-technology-of-the-year-award-winners-183313#slide23"><img src="{{=URL('static','images/infoworld2012.jpeg')}}" width="200px"/></a><br/>
<a class="btn btn-danger" href="{{=URL('download')}}" style="margin-top:10px; width:180px; color:white">Download Now</a><br/>
<a class="btn btn-danger" href="http://web2py.com/demo_admin" style="margin-top:10px; width:180px; color:white">Online Demo</a><br/>
<a class="btn btn-danger" href="https://www.pythonanywhere.com/try-web2py" style="margin-top:10px; width:180px; color:white">Try it now online</a><br/>
<a class="btn btn-danger" href="http://web2py.com/poweredby" style="margin-top:10px; width:180px; color:white">Sites Powered by web2py</a>
</div>
</div>
+4 -3
View File
@@ -4,6 +4,7 @@
# recreated by Vladyslav Kozlovskyy
# license MIT/BSD/GPL
import re
import urllib
from cgi import escape
from string import maketrans
try:
@@ -466,7 +467,7 @@ You can use Google charts to render the formula:
``
LATEX = '<img src="http://chart.apis.google.com/chart?cht=tx&chl=%s" />'
markmin2html(text,{'latex':lambda code: LATEX % code.replace('"','\\\\"')})
markmin2html(text,{'latex':lambda code: LATEX % urllib.quote(code)})
``
### Code with syntax highlighting
@@ -779,7 +780,7 @@ def render(text,
'xaaax'
>>> print render(r"$$\int_a^b sin(x)dx$$")
<img src="http://chart.apis.google.com/chart?cht=tx&chl=\\int_a^b sin(x)dx" />
<img src="http://chart.apis.google.com/chart?cht=tx&chl=%5Cint_a%5Eb%20sin%28x%29dx" />
>>> markmin2html(r"use backslash: \[\[[[mess\[[ag\]]e link]]\]]")
'<p>use backslash: [[<a href="link">mess[[ag]]e</a>]]</p>'
@@ -1382,7 +1383,7 @@ def render(text,
% (id_prefix+d,b,d) \
for d in escape(code).split(','))+']'
elif b=='latex':
return LATEX % code.replace('"','\"').replace('\n',' ')
return LATEX % urllib.quote(code)
elif b in html_colors:
return '<span style="color: %s">%s</span>' \
% (b, render(code, {}, {}, 'br', URL, environment, latex,