<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/test_website/tests/test_controller_args.py, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[FIX] *: remove old deprecated modules/functions</title>
<updated>2019-09-17T11:36:42+00:00</updated>
<author>
<name>Julien Castiaux</name>
<email>juc@odoo.com</email>
</author>
<published>2019-09-11T09:45:31+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=4f03a5f136ab928ae74322bf1c34a1b6a6baf979'/>
<id>4f03a5f136ab928ae74322bf1c34a1b6a6baf979</id>
<content type='text'>
PEP-594 is deprecating a bunch of modules. As part of the cleanup, we
are also dealing with long deprecated modules, functions and aliases.

* `assert_` -&gt; `assertTrue`
* `assertEquals` -&gt; `assertEqual`
* `assertNotEquals` -&gt; `assertNotEqual`
* `assertAlmostEquals` -&gt; `assertAlmostEqual`
* `assertRaisesRegexp` -&gt; `assertRaisesRegex`
* `assertRegexpMatches` -&gt; `assertRegex`
* `base64.encodestring` -&gt; `base64.encodebytes`
* `base64.decodestring` -&gt; `base64.decodebytes`
* `inspect.getargspec` -&gt; `inspect.signature`
* `inspect.formatargspec` -&gt; `inspect.signature`
* `logging.warn` -&gt; `logging.warning`

closes odoo/odoo#36863

Task: 2003936
Signed-off-by: Raphael Collet (rco) &lt;rco@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PEP-594 is deprecating a bunch of modules. As part of the cleanup, we
are also dealing with long deprecated modules, functions and aliases.

* `assert_` -&gt; `assertTrue`
* `assertEquals` -&gt; `assertEqual`
* `assertNotEquals` -&gt; `assertNotEqual`
* `assertAlmostEquals` -&gt; `assertAlmostEqual`
* `assertRaisesRegexp` -&gt; `assertRaisesRegex`
* `assertRegexpMatches` -&gt; `assertRegex`
* `base64.encodestring` -&gt; `base64.encodebytes`
* `base64.decodestring` -&gt; `base64.decodebytes`
* `inspect.getargspec` -&gt; `inspect.signature`
* `inspect.formatargspec` -&gt; `inspect.signature`
* `logging.warn` -&gt; `logging.warning`

closes odoo/odoo#36863

Task: 2003936
Signed-off-by: Raphael Collet (rco) &lt;rco@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] odoo: ignore unsupported args from controller</title>
<updated>2019-06-08T13:53:57+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2019-06-07T06:22:41+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=521f7d36c1ff929ea52e9ed6fd4170bd3b968b19'/>
<id>521f7d36c1ff929ea52e9ed6fd4170bd3b968b19</id>
<content type='text'>
Before this commit, call a controller defined as:

```
@http.route('/route', type='http', auth='public')
def controller_func(self, foo):
do_it()
```

and called with url like /route?foo=1&amp;bar=2

will crash with an exception:
`TypeError: controller_func() got an unexpected keyword argument 'bar'`

Now, we remove the extra parameters if the controller doesn't support it.
This case is not uncommon, you can easily arrive in this case with utm or
debug as extra parameter.

closes odoo/odoo#33962

Signed-off-by: Christophe Simonis &lt;chs@odoo.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this commit, call a controller defined as:

```
@http.route('/route', type='http', auth='public')
def controller_func(self, foo):
do_it()
```

and called with url like /route?foo=1&amp;bar=2

will crash with an exception:
`TypeError: controller_func() got an unexpected keyword argument 'bar'`

Now, we remove the extra parameters if the controller doesn't support it.
This case is not uncommon, you can easily arrive in this case with utm or
debug as extra parameter.

closes odoo/odoo#33962

Signed-off-by: Christophe Simonis &lt;chs@odoo.com&gt;</pre>
</div>
</content>
</entry>
</feed>
