Custom Query (58 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (13 - 15 of 58)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#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.

#1442 fixed Error in the translation of methods to javascript apoirier apoirier

Reported by apoirier, 7 years ago.

Description

A function can be automatically translated to javascript:

def greet():
   window.alert('Hello world!')

class MyComponent(object):
   pass

@presentation.render_for(MyComponent)
def render(self, h, *args):
   return h.input(type='submit', onclick=greet)

But the translation of a method:

class MyComponent(object):
   def greet(self):
       window.alert('Hello world!')

@presentation.render_for(MyComponent)
def render(self, h, *args):
   return h.input(type='submit', onclick=self.greet)

raises an IndentationError exception:

...
File '/Volumes/data/projects/nagare/dev/src/nagare/core/nagare/namespaces/xhtml.py', line 68 in add_attribute
  xml.add_attribute(self, name, ajax.JS(value))
File '/Volumes/data/projects/nagare/dev/src/nagare/core/nagare/ajax.py', line 339 in __init__
  self.javascript = str2js(src, module)
File '/Volumes/data/projects/nagare/dev/src/nagare/core/nagare/ajax.py', line 300 in str2js
  pyjs.Translator(namespace, compiler.parse(src), output)
File '/opt/stackless-2.6.2/lib/python2.6/compiler/transformer.py', line 51 in parse
  return Transformer().parsesuite(buf)
File '/opt/stackless-2.6.2/lib/python2.6/compiler/transformer.py', line 128 in parsesuite
  return self.transform(parser.suite(text))
IndentationError: unexpected indent (line 1)
#1512 fixed Error with accentuated characters in URL apoirier crumble

Reported by crumble, 6 years ago.

Description

Running nagare with standalone publisher  http://localhost:8080/admin/?property_value=test+%E9%E9%E9

give the following errors

Using webob 1.2b2


Exception happened during processing of request from ('127.0.0.1', 53279) Traceback (most recent call last):

File "/Users/herve/projects/aramis/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 1068, in process_request_in_thread

self.finish_request(request, client_address)

File "/opt/stackless-26-maint/lib/python2.6/SocketServer.py", line 322, in finish_request

self.RequestHandlerClass?(request, client_address, self)

File "/opt/stackless-26-maint/lib/python2.6/SocketServer.py", line 617, in init

self.handle()

File "/Users/herve/projects/aramis/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 442, in handle

BaseHTTPRequestHandler.handle(self)

File "/opt/stackless-26-maint/lib/python2.6/BaseHTTPServer.py", line 329, in handle

self.handle_one_request()

File "/Users/herve/projects/aramis/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 437, in handle_one_request

self.wsgi_execute()

File "/Users/herve/projects/aramis/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 287, in wsgi_execute

self.wsgi_start_response)

File "/Users/herve/projects/aramis/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/urlmap.py", line 203, in call

return app(environ, start_response)

File "/Users/herve/Documents/workspace/nagare/nagare-core/nagare/wsgi.py", line 370, in call

channel_id = request.params.get('_channel')

File "build/bdist.macosx-10.4-x86_64/egg/webob/request.py", line 692, in params

params = NestedMultiDict?(self.GET, self.POST)

File "build/bdist.macosx-10.4-x86_64/egg/webob/request.py", line 674, in GET

vars = GetDict?(data, env)

File "build/bdist.macosx-10.4-x86_64/egg/webob/multidict.py", line 273, in init

MultiDict?.init(self, data)

File "build/bdist.macosx-10.4-x86_64/egg/webob/multidict.py", line 37, in init

items = list(args[0])

File "build/bdist.macosx-10.4-x86_64/egg/webob/compat.py", line 125, in parse_qsl_text

yield (x.decode(encoding), y.decode(encoding))

File "/Users/herve/projects/aramis/lib/python2.6/encodings/utf_8.py", line 16, in decode

return codecs.utf_8_decode(input, errors, True)

UnicodeDecodeError?: 'utf8' codec can't decode byte 0xe9 in position 5: invalid continuation byte


Using webob 1.1.1


Exception happened during processing of request from ('127.0.0.1', 53308) Traceback (most recent call last):

File "/Users/herve/projects/aramis/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 1068, in process_request_in_thread

self.finish_request(request, client_address)

File "/opt/stackless-26-maint/lib/python2.6/SocketServer.py", line 322, in finish_request

self.RequestHandlerClass?(request, client_address, self)

File "/opt/stackless-26-maint/lib/python2.6/SocketServer.py", line 617, in init

self.handle()

File "/Users/herve/projects/aramis/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 442, in handle

BaseHTTPRequestHandler.handle(self)

File "/opt/stackless-26-maint/lib/python2.6/BaseHTTPServer.py", line 329, in handle

self.handle_one_request()

File "/Users/herve/projects/aramis/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 437, in handle_one_request

self.wsgi_execute()

File "/Users/herve/projects/aramis/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py", line 287, in wsgi_execute

self.wsgi_start_response)

File "/Users/herve/projects/aramis/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/urlmap.py", line 203, in call

return app(environ, start_response)

File "/Users/herve/Documents/workspace/nagare/nagare-core/nagare/wsgi.py", line 432, in call

response = self.on_exception(request, response)

File "/Users/herve/Documents/workspace/nagare/nagare-core/nagare/wsgi.py", line 423, in call

render = self._phase1(request, response, callbacks)

File "/Users/herve/Documents/workspace/nagare/nagare-core/nagare/wsgi.py", line 329, in _phase1

return callbacks.process_response(request, response)

File "/Users/herve/Documents/workspace/nagare/nagare-core/nagare/callbacks.py", line 152, in process_response

raise CallbackLookupError?(name[8:])

UnboundLocalError?: local variable 'name' referenced before assignment


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