On 18/11/12 08:57, SantosZV wrote:
>
> How the session is handled? I'm relying a lot on Vaadin data model,
> session must be shared properly between requests.
> Webware WebKit is supported? I'm interested to share some code between
> "Java Servlets" and "Python Servlets".
Muntjac uses the Servlet classes from Paste WebKit.
http://pypi.python.org/pypi/PasteWebKit/1.0
By default, this will persist your application using Python's pickle
feature. This is similar to using the Serialiazble interface in Java.
Pickling can be a bit slow, depending on how you construct your
application, so I wrote an InMemorySession that just uses a global dict
which maps session id to application.
https://github.com/rwl/muntjac/blob/master/muntjac/demo/util.py#L33
One thing to note is that there is currently no Python implementation of
BeanContainer. This is a an important part of the Vaadin data model, but
it relies a lot on introspection of the bean's field types.
Regards,
Richard