Custom Query (58 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (7 - 9 of 58)

1 2 3 4 5 6 7 8 9 10 11 12 13
Ticket Resolution Summary Owner Reporter
#21 fixed wsgi.py - database.session.clear() called too late apoirier bertrand.croq

Reported by bertrand.croq, 9 years ago.

Description

In wsgi.py, database.session.clear() is called before phase1, but after security.set_user() is called. If the user is fetched from the database, this is a problem.

Shouldn't the session be cleared (or closed, as this seem to be prefered in  http://www.sqlalchemy.org/docs/04/session.html#unitofwork_using_expunge) at the end of each wsgi call ?

#22 fixed h.img.action and callbacks.clear_not_used apoirier bertrand.croq

Reported by bertrand.croq, 9 years ago.

Description
class A:
    def img(self):
        return '..........' # the image

class Something:
    pass

@presentation.render_for(Something)
def render(*args)
    return (h.img.action(A().img()),
            h.img.action(A().img()))

The generated HTML for Something is ok. But when the browser asks for the first image, callbacks.clear_not_used is called in WSGIApp.__call__, which deletes the callback for the second image.

#23 fixed Different requests modifying the same callbacks dict apoirier bertrand.croq

Reported by bertrand.croq, 9 years ago.

Description

When Nagare receives a first request R1, it gets the associated session then extracts the callbacks dict Cdict1 from this session. Then, the requested callbacks are called ; this modifies the callbacks dict. Finally, the new callbacks dict Cdict2 is stored in the session.

A problem occures when a second request R2 is received for the same session before Cdict2 is stored : this second request will start working on the callbacks dict Cdict1 and will produce another callbacks dict Cdict3.

If R1 finishes before R2, all the new callbacks registered is Cdict2 will be lost because Cdict3 will replace it in the session.

If R2 finishes before R1, all the new callbacks registered is Cdict3 will be lost because Cdict2 will replace it in the session.

1 2 3 4 5 6 7 8 9 10 11 12 13
Note: See TracQuery for help on using queries.