Anthony, I hope you don't mind if I push this discussion into group.

W dniu 01.07.2012 10:28, C Anthony Risinger pisze:
i can't pull this -- i'm hesitant to even have it as an example.

merging into the repository proper gives the impression it's some sort of 
supported or official API, which is very much not the case.  when i wrote this 
hack on-list, it was really only meant to be educational, and provide some 
insight into how the translator **currently** works.

i will elaborate on-list, but any API for improving integration with JS must, 
at the minimum:

  - neither depend on nor constrain the translator's implementation in any way

Do you mean that it will work with pyjs/pyjsbuild but not with pyjd and it's the problem?

  - be complete enough to fulfill 95% of what users continually request

I'm not 100% sure that I understand above. Do you mean, that there too little ppl who want such feature (I know 1 so far - me :D)?

  - almost certainly needs to be asynchronous

I don't have even rough idea what did you mean by writing that.


this dispatcher relies on implementation details within the translator, and is 
likely to break for obscure reasons.  it would also preclude the translator 
from  pursuing more ambitious/radical architectures.

i don't mean to discourage -- this just isn't the right way.  it would however 
make for a great wiki entry, with the caveat of being a hack, or possibly 
unstable (for the reasons above).

Ok, so the main question is - do you think that my goal, which means:
- I have site (existing, written in something different than pyjs) where I embed pyjbuild compiled code, - I want to eg. launch pyjs based popup panel with question/widget/something after clicked on some button I already have in html,

a) is achievable with quality standards mentioned above - In such case I will try to follow your standards and guidelines, to have it in pyjamas. I believe that it's very needed, to have nice looking and good working equivalent of "<button onClick='window.frames[0].$pyjs.loaded_modules.all._export()'>" which I had to use.

b) it's against pyjamas philosophy, in such case I will just make external util library which will have this functionality.

--
pozdrawiam

Łukasz Mach - [email protected]

Reply via email to