Hi all. When I call a url, for example:

http://localhost:6543/home/address/edit/2

Always two requests are fired, but I can't see why or where. For example:

2012-03-22 18:20:29,518 DEBUG [t2t][Dummy-4] route matched for url http://localhost:6543/home/address/edit/2; route_name: 'address', path_info: u'/home/address/edit/2', pattern: '/home/address/{action}/{id:\\d+}', matchdict: {'action': u'edit', 'id': u'2'}, predicates: ''
GET /home/address/edit/2 HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: es,en;q=0.8,es-es;q=0.5,en-us;q=0.3
Cookie: beaker.session.id=a3c9dd5015324c96a2dde7ba35e9ad2f; auth_tkt="33880cb2a554f95373a630e28e9015da4f6b443d1!userid_type:int"
Host: localhost:6543
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0
GET /home/address/edit/2 HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: es,en;q=0.8,es-es;q=0.5,en-us;q=0.3
Cookie: beaker.session.id=a3c9dd5015324c96a2dde7ba35e9ad2f; auth_tkt="33880cb2a554f95373a630e28e9015da4f6b443d1!userid_type:int"
Host: localhost:6543
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 2012-03-22 18:20:30,394 DEBUG [t2t][Dummy-5] route matched for url http://localhost:6543/_debug_toolbar/static/css/toolbar.css?0.5182919267246503; route_name: '___debug_toolbar/static/', path_info: u'/_debug_toolbar/static/css/toolbar.css', pattern: '_debug_toolbar/static/*subpath', matchdict: {'subpath': (u'css', u'toolbar.css')}, predicates: ''

I'm using pyramid_handlers, and for example, the signature of this method is:

 @action(renderer='test:templates/edit_address.mako',
         permission='edit')
 def edit(self):
     ...

All sql queries are also duplicated.. Any help?

--
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