Version 0.3.0

12 views
Skip to first unread message

apoirier

unread,
Feb 16, 2010, 12:35:44 PM2/16/10
to Nagare users
Hi all,

The version 0.3.0 of the Nagare web framework is now released !

0.3.0 Changelog
===============

New features
------------

- refactoring of the sessions managers:

- session objects now keep track of their sessions manager
- no more sessions manager factories
- configurable pickler / unpickler objects
- configuration switch ``states_history`` to set if an objects
graphs history must be kept
- new sessions manager (``type=memory``) that keeps the objects
graphs in memory, without any pickling
- logging service added:

- one dedicated logger for each published applications is created
- easy configuration and use of this dedicated logger
- all the ``[logging]`` sections of all the published applications
are merged before to configure the Python logging system
- preliminary Comet support added (currently only working in a multi-
threaded env.)
- last exception raised kept by the ``WSGIApp`` objects and
exception hook added
- ``with_request`` parameter added to all the callback registrations
and ``Update()`` objects
- translation of Python modules to Javascript added
- configurable name for the security cookie (one of the post Nagare
security audit actions)
- configuration of the ``WSGIApp`` objects split accross multiples
`set_*`` methods
- ``get_registered_applications()`` added to the publisher objects
- full YUI bundled with Nagare
- New versions:

- Stackless Python 2.6.4 is now the recommanded Python version
- virtualenv updated to 1.4.5
- SQLAlchemy updated to 0.5.8
- Elixir updated to 0.7.1
- Lxml updated to 2.2.4
- YUI updated to 2.8.0r4

Changes
-------

- with the YUI connection manager, a large browser response must be
reassembled (Firefox only)
- late creation of the SQLAlchemy database engines and metadatas
binding
- input fields ot type ``button`` now working in an Ajax submit
- ``Var.var()`` now working inn a unicode context
- ``nagare-admin create-rules`` had problems when a static directory
didn't exist
- bad boolean expressions parenthesis translation in pyjs fixed
- parsing (X)HTML from URL now working under Windows

Bugs fixed
----------

- #47: ``set_publisher()`` called when using "nagare-admin create-
db"
- #48: py2js parentheses bug
- #49: ``reset`` configuration ignored by the memcached sessions
manager
- #50: [log] inferred caller is wrong

Pavel Kaygorodov

unread,
Mar 13, 2010, 5:52:31 AM3/13/10
to nagare...@googlegroups.com
Hi!

2010/2/16 apoirier <alain.p...@gmail.com>
The version 0.3.0 of the Nagare web framework is now released !

 - preliminary Comet support added (currently only working in a multi-
threaded env.)


Can you tell some more about this feature?
And how to use Update() in ajax components?

With best regards,
  Pavel.

Vincent Rialland

unread,
Mar 13, 2010, 10:20:05 AM3/13/10
to nagare...@googlegroups.com
Hi,

See http://en.wikipedia.org/wiki/Comet_%28programming%29 to know more about Comet. In a few words it allows you to push data to the user browser instead of following the classic request/response cycle. An example app is available in nagare.examples : http://www.nagare.org/trac/browser/trunk/nagare/examples/nagare/examples/chat.py

Give it a try using two browser sessions at once, you'll see :)

By the way,  I was wondering how to serve Comet based apps behind Apache. I'm currently running one with mod_proxy but I have to generate fake events to prevent proxy timeout on long polling request.

2010/3/13 Pavel Kaygorodov <pavel.ka...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Nagare users" group.
To post to this group, send email to nagare...@googlegroups.com.
To unsubscribe from this group, send email to nagare-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nagare-users?hl=en.



--
Vincent RIALLAND

Pavel Kaygorodov

unread,
Mar 14, 2010, 5:50:03 AM3/14/10
to nagare...@googlegroups.com
Hi!

2010/3/13 Vincent Rialland <vincent....@gmail.com>

See http://en.wikipedia.org/wiki/Comet_%28programming%29 to know more about Comet. In a few words it allows you to push data to the user browser instead of following the classic request/response cycle. An example app is available in nagare.examples : http://www.nagare.org/trac/browser/trunk/nagare/examples/nagare/examples/chat.py
Give it a try using two browser sessions at once, you'll see :)


Excellent! I will try it in my project :)
BTW, do you planing to release two-way comet-like interface? Now, I can easily call javascript function from nagare application, but if I want to transfer (in background) some information from browser to application I have to create hidden form, fill it from JS and emulate button-down event to do it. And it's very difficult to catch errors in this way. It seems to be easy to implement simple interface for calling python-object methods from JS (and get returned value back to JS).

By the way,  I was wondering how to serve Comet based apps behind Apache. I'm currently running one with mod_proxy but I have to generate fake events to prevent proxy timeout on long polling request.

May be it will be better to use specific comet-optimized  web-server?

Reply all
Reply to author
Forward
0 new messages