Ticket #22 (closed bug: fixed)

Opened 9 years ago

Last modified 9 years ago

h.img.action and callbacks.clear_not_used

Reported by: bertrand.croq Owned by: apoirier
Priority: major Component: uncategorized
Version: 0.1.0 Keywords:
Cc:

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.

Change History

comment:1 Changed 9 years ago by apoirier

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.