Problem solved

As I examined the logs, I felt that the problem came from
pylons.templating, and as on the other hand I thought that a
Session.remove() was missing somewhere, I eventually realized that the
problem came from lib.base.py and is solved by writing

try:
   return WSGIController.__call__(self,environ,start_response)
finally:
   meta.Session.remove()

instead of only
return WSGIController.__call__(self,environ,start_response)

in the method __call__ of the class BaseController.

I have now to study that attentively.

Greetings,
Etienne


On 11 août, 17:09, Etienne <[email protected]> wrote:
> Hi,
> I have build an application following the SimpleSite application from
> Pylonsbook. Here is my problem: when I modify several times a page
> (actions page/edit, page/save and page/view) it is properly saved in
> the
> database but does not always appear properly on the screen. The
> application seems to memorise the various versions of the page and
> when I
> update the page in the browser, it shows the various versions
> successivly.
> The problem does not seem to come from the browser, since it occurs in
> the
> same way with firefox and safari.
>
> I don't know how to debug the problem, I'd bee very gratefull to
> anyone
> could help me.
>
> Etienne

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to