comparison docs.html @ 23:7cbbec55aef6

Minor modifications.
author Atul Varma <varmaa@toolness.com>
date Thu, 10 Sep 2009 17:05:05 -0700
parents 915fdf283ac5
children c2c369402a2e
comparison
equal deleted inserted replaced
22:915fdf283ac5 23:7cbbec55aef6
17 object, and a simple <a class="reference" href="http://wiki.commonjs.org/wiki/CommonJS/Modules/SecurableModules">SecurableModule</a> implementation that complies 17 object, and a simple <a class="reference" href="http://wiki.commonjs.org/wiki/CommonJS/Modules/SecurableModules">SecurableModule</a> implementation that complies
18 with the <a class="reference" href="http://wiki.commonjs.org/wiki/CommonJS">CommonJS</a> standard. It also provides a high-level bridge between 18 with the <a class="reference" href="http://wiki.commonjs.org/wiki/CommonJS">CommonJS</a> standard. It also provides a high-level bridge between
19 Python and JavaScript so that you don't need to deal with any of the 19 Python and JavaScript so that you don't need to deal with any of the
20 low-level details of the Pydermonkey API.</p> 20 low-level details of the Pydermonkey API.</p>
21 <p>For instance, here we'll create a <tt class="docutils literal"><span class="pre">JsSandbox</span></tt> whose module root 21 <p>For instance, here we'll create a <tt class="docutils literal"><span class="pre">JsSandbox</span></tt> whose module root
22 points to the <tt class="docutils literal"><span class="pre">monkeys</span></tt> SecurableModule compliance test over HTTP:</p> 22 points to the <a class="reference" href="http://interoperablejs.googlecode.com/svn/trunk/compliance/monkeys/">monkeys</a> SecurableModule compliance test over HTTP:</p>
23 <blockquote> 23 <blockquote>
24 <pre class="doctest-block"> 24 <pre class="doctest-block">
25 &gt;&gt;&gt; url = (&quot;http://interoperablejs.googlecode.com/svn/trunk/&quot; 25 &gt;&gt;&gt; url = (&quot;http://interoperablejs.googlecode.com/svn/trunk/&quot;
26 ... &quot;compliance/monkeys/&quot;) 26 ... &quot;compliance/monkeys/&quot;)
27 &gt;&gt;&gt; sandbox = JsSandbox(HttpFileSystem(url)) 27 &gt;&gt;&gt; sandbox = JsSandbox(HttpFileSystem(url))