On Thu, Jun 14, 2012 at 10:17 PM, C Anthony Risinger <[email protected]> wrote:
> On Thu, Jun 14, 2012 at 10:13 PM, C Anthony Risinger <[email protected]> wrote:
>>
>> im not sure i've understood your requirements completely (any
>> links/etc?), but i would recommend starting with pyjsbuild and the
>> simple examples just to get a feel for how it all works.  you could
>> even take the artifacts from pyjsbuild and manually add them to your
>> application, trying to make it all work, before you worry about
>> pyjscompile.
>>
>> we'll be around if [when] you have more questions :-)
>
> you can also putz around with:
>
> http://translate-pyjs-org.appspot.com/
>
> ... which is an absolutely minimal interface to the translator.

... and i now realize i never posted/linked/shared the source to this,
for you or others.  the last 30 lines of this file:

https://github.com/xtfxme/translate-pyjs-org.appspot.com/blob/master/app.py

... is the actual "application". note: the translator was modified
slightly to run on App Engine, but these changes were already destined
for the mainline (accepting any file-like object instead of a
filename, etc.).

translator call is here:

https://github.com/xtfxme/translate-pyjs-org.appspot.com/blob/master/app.py#L263

... but the one in master may differ slightly (in signature, IIRC).

-- 

C Anthony

Reply via email to