Custom Query (58 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (49 - 51 of 58)

Ticket Resolution Summary Owner Reporter
#47 fixed set_publisher() called when using "nagare-admin create-db" apoirier bertrand.croq

Reported by bertrand.croq, 9 years ago.

Description

When using "nagare-admin create-db", WSIApp.set_publisher() is called with None as a publiser:

Traceback (most recent call last):
  File "projects/gnfa12/dev/2.1.0/bin/nagare-admin", line 8, in <module>
    load_entry_point('nagare==0.2.0-r186', 'console_scripts', 'nagare-admin')()
  File "NetBeansProjects/nagare/core/nagare/admin/main.py", line 73, in main
    command.run(parser, options, args)  # Run the command
  File "NetBeansProjects/nagare/core/nagare/admin/db.py", line 65, in create
    for (metadata, populate) in read_options(options.debug, args, parser.error):
  File "NetBeansProjects/nagare/core/nagare/admin/db.py", line 49, in read_options
    return util.activate_WSGIApp(app, cfgfile, aconf, error, debug=debug)[1]
  File "NetBeansProjects/nagare/core/nagare/admin/util.py", line 328, in activate_WSGIApp
    app.set_publisher(publisher)
  File "NetBeansProjects/intcvs/nagare/gnfa12/eprofil/application.py", line 39, in set_publisher
    assert(publisher is not None)
AssertionError
#52 fixed Tell what component tries to answer without having an _on_answer or a caller apoirier bertrand.croq

Reported by bertrand.croq, 9 years ago.

Description

Nagare raises an AnswerWithoutCall exception when a component answers without having an _on_answer or a caller. Debugging would be easier if we could know which component raises the exception.

#67 fixed The serializer can't serialize a list of DOMs apoirier apoirier

Reported by apoirier, 8 years ago.

Description

Exception :

NoApplicableMethods: (([<Element div at 2a9f0a0>, <Element div at 2a9f0d8>], 'text/html', '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', False), {})

with this code:

from nagare import presentation, ajax

class C:
    pass

@presentation.render_for(C, model='async')
def render(self, h, *args):
    h << h.div('foo')
    h << h.div('bar')
    return h.root  # Returning a list of 2 DOMs

@presentation.render_for(C)
def render(self, h, comp, *args):
    h << h.div(id='async_div')
    h << h.a('Click me').action(ajax.Update(
                              render=lambda h: comp.render(h, model='async'),
                              component_to_update='async_div')
                             )
    return h.root
Note: See TracQuery for help on using queries.