apiguy/flask-classy — pull request #55 by bulv1ne (2014-03-12 08:49:36+00:00)
Title: Inheritance issues

The route decorator was broken for base views in inheritance. See issue #39 and #43.

```_temp_rule_cache``` is removed and the ```_rule_cache``` now lives in the method itself.
This fixes inheritance issues.

```python
class GenericView(FlaskView):
@route('/page/')
@route('/', defaults={'page': 1})
def index(self, page):
return str(page)

class PostsView(GenericView):
route_base = '/'

PostsView.register(app)
GenericView.register(app)
```

```app.url_map``` will now contain
```
Map([' (GET, HEAD, OPTIONS) -> GenericView:index_1>,
' (GET, HEAD, OPTIONS) -> PostsView:index_1>,
GenericView:index_0>,
PostsView:index_0>])
```