Pylons/pyramid — Issue #321: [py3k] registering view causes error, function is not orderable.
Author: aodag
Created: 2011-10-22 08:25:12+00:00
State: open

python: 3.2.2
pyramid: -e git://github.com/Pylons/pyramid.git@b75e577383936454d8b3e912f4f5478bf9af01e6#egg=pyramid-dev
OS: Ubuntu 10.04 64bit

```python
@view_config(route_name="top", renderer='index.mak', request_method="GET")
def index(req):
....

@view_config(route_name="top", request_method="POST")
def create_task(req):
....
```

> Traceback (most recent call last):
> File "/home/aodag/works/pyramid3k/src/pyramid/pyramid/config/__init__.py", line 914, in execute_actions
> callable(*args, **kw)
> File "/home/aodag/works/pyramid3k/src/pyramid/pyramid/config/views.py", line 1043, in register
> multiview.add(derived_view, order, accept, phash)
> File "/home/aodag/works/pyramid3k/src/pyramid/pyramid/config/views.py", line 484, in add
> self.views.sort()
> TypeError: unorderable types: function() < function()