GWT在Python App Engine上 [英] GWT on Python App Engine

查看:87
本文介绍了GWT在Python App Engine上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个python应用程序引擎代码(成熟的后端) - 我们现在计划为该代码设置一个前端。

我想知道是否有可能将GWT作为前端。尽管Alex Martelli在这篇文章中提到它不可能,但对该帖子的评论表明,对GWT使用rpc而不是json是可能的。 / p>

我无法理解这是如何实现的。在app.yaml文件中,我们必须指定语言为python,对吧?在这种情况下,如何编译基于JAVA的GWT?任何人都有这样的例子吗?



有人可以帮我吗?这将是非常有用的。

[1]:在Google App Engine上选择Java vs Python 链接

解决方案

我用相当多的Python使用GWT - JSON接口工作得非常好。你的GWT前端仍然是用类似java的语法编写的,你仍然需要Java工具链来实际编译成HTML / Javascript,但它并不关心后端编写的语言。



至于如何完成 - GWT工具链完全独立于GAE,AppEngine方面没有可执行的Java。您可以在自己的系统上设计并编写您的GWT前端,然后将其编译为HTML / JS,这就是您上传到GAE的内容。


I have a python app engine code (matured backend) - and we are now planning to have a front end for that code.

I was wondering whether it is possible to implement GWT as the front end.

Even though Alex Martelli in this post [1] mentions it is not possible, a comment to that post suggests that it is indeed possible using rpc over json for GWT.

I was unable to understand how this is possible. In app.yaml file, we have to specify the language to be python, right? In that case, how can it compile GWT based on JAVA? Are there any examples on anyone doing that?

Can someone help me out? It would be extremely helpful.

[1]: Choosing Java vs Python on Google App Engine link

解决方案

I use GWT with Python quite a bit - the JSON interface works perfectly well. Your GWT front-end is still written in a java-like syntax, and you still need the Java toolchain to actually compile it down to HTML/Javascript, but it doesn't care what language the backend is written in.

As for how this is accomplished - the GWT toolchain is completely independent of GAE, there's no executable Java on the AppEngine side. You design and write your frontend in GWT on your own system, and then compile it to HTML/JS, which is what you upload to GAE.

这篇关于GWT在Python App Engine上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆