On Wed, Jul 11, 2012 at 4:08 PM, Daniel Gonzalez <gonva...@gmail.com> wrote: > > Thanks istvan, this is working!
i'm glad your getting it all working (and most certainly via the 10,000 m/s crash course :-), as your threads are good testaments of why, should these bidirectional interactions ever be supported, they MUST pass thru a static, pre-defined, and well-established API, residing outside-of-and-immune-to the translator feature settings (eg, __setattr__). the alternatives appear riddled by hard-to-track-and-mutually-exclusive bugs, explosive incompatibilities, headaches, ultimately to the satisfaction of no one (yikes, that came off more pessimistic than intended ... here is another :-)! anyways, i simply noticed some calls to JS eval() in several of your posted snippets -- why? i am quite certain you'll never need it ... (if you do, well, {shudder}) just work with python normally 99% of the time, and when you need to "cross-over", use the @{{python-identifier-goes-here}} mechanism. be leery of wnd() and other quasi-types from __pyjamas__; these are not general purpose python objects. make *every* operation explicit (eg. `setattr` vs. relying on language features) and you will go much further/faster, because most of the translator's `--enable-xyz` options relate to (dis|en)abling various *implicit* language behaviors easily performed by the python.org interpreter (__get__, __set__, etc, etc), but difficult or expensive under pyjs. keep it up ... this time next year you'll be hacking on the core :-) -- C Anthony