New to Muntjac, regular user of Vaadin

148 views
Skip to first unread message

SantosZV

unread,
Nov 18, 2012, 2:57:18 AM11/18/12
to mun...@googlegroups.com
Good day.

I'm a regular Java/Vaadin/Glassfish looking for alternatives, seeing a very interesting alternative here.

I have some questions:
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".

I'm not (yet) a good python programmer, but I can help to this project in some manner.

Thanks on advance.


Richard Lincoln

unread,
Nov 18, 2012, 11:27:01 AM11/18/12
to mun...@googlegroups.com
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

Santos Zatarain Vera 'NetTrodon'

unread,
Nov 18, 2012, 3:48:24 PM11/18/12
to mun...@googlegroups.com

You are rigth, implementing BeanContainer and subclasses will be some difficult by introspection/equals/hashcode "semantics".

We can use the "dictionary protocol" for some emulation, I'll try this idea. Some Python ORMs implements acess to properties as "dictionary like", so this idea is a good starting for a BeanContainer replacement.

Richard Lincoln

unread,
Nov 20, 2012, 6:57:51 PM11/20/12
to mun...@googlegroups.com
I had a stab at translating GaeContainer a while back.

https://github.com/rwl/muntjac/tree/gaecontainer/muntjac/data/util/gaecontainer

I don't it'd take too much to make it generic enough to work with GAE,
Django and SqlAlchemy.

On 18 November 2012 21:48, Santos Zatarain Vera 'NetTrodon'

SantosZV

unread,
Nov 23, 2012, 11:25:53 PM11/23/12
to mun...@googlegroups.com
I will take in account. Thanks.
Reply all
Reply to author
Forward
0 new messages