[pypy-svn] r41387 - in pypy/dist/pypy/translator/js/examples: console console/data data
fijal at codespeak.net
fijal at codespeak.net
Mon Mar 26 17:29:47 CEST 2007
Author: fijal
Date: Mon Mar 26 17:29:45 2007
New Revision: 41387
Modified:
pypy/dist/pypy/translator/js/examples/console/console.py
pypy/dist/pypy/translator/js/examples/console/data/console.html
pypy/dist/pypy/translator/js/examples/data/error.html
pypy/dist/pypy/translator/js/examples/data/index.html
Log:
Play1 various fixes (including a bit of line wrapping)
Modified: pypy/dist/pypy/translator/js/examples/console/console.py
==============================================================================
--- pypy/dist/pypy/translator/js/examples/console/console.py (original)
+++ pypy/dist/pypy/translator/js/examples/console/console.py Mon Mar 26 17:29:45 2007
@@ -26,14 +26,12 @@
return rpython2javascript(client, FUNCTION_LIST)
def line_split(ret, max_len):
- return ret
- # XXX borken
to_ret = []
for line in ret.split("\n"):
if len(line) > max_len:
to_ret += [line[i*max_len:(i+1)*max_len] for i in
- range(len(line)/max_len - 1)]
- i += 1
+ range(len(line)/max_len)]
+ i = len(line)/max_len
else:
i = 0
to_ret.append(line[i*max_len:])
Modified: pypy/dist/pypy/translator/js/examples/console/data/console.html
==============================================================================
--- pypy/dist/pypy/translator/js/examples/console/data/console.html (original)
+++ pypy/dist/pypy/translator/js/examples/console/data/console.html Mon Mar 26 17:29:45 2007
@@ -11,7 +11,7 @@
<div id="metaspace">
<h1 class="title">PyPy[consoles]</h1>
<div class="menubar">
- <a href="console">Python consoles</a> - <a href="http://play1.codespeak.net:8058/">ANSI terminal</a> - <a href="/bnb">Bub'n'Bros JavaScript version</a>
+ <a href="/console">Python consoles</a> - <a href="http://play1.codespeak.net:8058/">ANSI terminal</a> - <a href="/bnb">Bub'n'Bros JavaScript version</a>
</div>
</div>
<div id="contents">
Modified: pypy/dist/pypy/translator/js/examples/data/error.html
==============================================================================
--- pypy/dist/pypy/translator/js/examples/data/error.html (original)
+++ pypy/dist/pypy/translator/js/examples/data/error.html Mon Mar 26 17:29:45 2007
@@ -3,13 +3,13 @@
<title>%(message)s</title>
</head>
<body>
- <link href="style.css" media="screen" rel="stylesheet" type="text/css"/>
+ <link href="/style.css" media="screen" rel="stylesheet" type="text/css"/>
</body>
- <a href="http://codespeak.net/pypy/"><img alt="PyPy" height="110" id="pyimg" src="py_web1.png" width="149"/></a>
+ <a href="http://codespeak.net/pypy/"><img alt="PyPy" height="110" id="pyimg" src="/py_web1.png" width="149"/></a>
<div id="metaspace">
<h1 class="title">PyPy[error]</h1>
<div class="menubar">
- <a href="console">Python consoles</a> - <a href="http://play1.codespeak.net:8058/">ANSI terminal</a> - <a href="/bnb">Bub'n'Bros JavaScript version</a>
+ <a href="/console">Python consoles</a> - <a href="http://play1.codespeak.net:8058/">ANSI terminal</a> - <a href="/bnb">Bub'n'Bros JavaScript version</a>
</div>
</div>
<div id="main">
Modified: pypy/dist/pypy/translator/js/examples/data/index.html
==============================================================================
--- pypy/dist/pypy/translator/js/examples/data/index.html (original)
+++ pypy/dist/pypy/translator/js/examples/data/index.html Mon Mar 26 17:29:45 2007
@@ -26,6 +26,9 @@
a little help box which explains the features.
</p>
+ <p>Demos should be working under firefox or mozilla browser, they
+ was reported also to work under opera, other browsers are uncertain</p>
+
<p><b>Note: these demos are set up on a replicable Xen instance, but
please do not vandalise the machine, otherwise we will be forced to
take it down.</b></p>
More information about the Pypy-commit
mailing list