http://static.repoze.org/bfgdocs/narr/urldispatch.html#example-4

This code seems to have problems
class Article(object):
    def __init__(self, environ):
        self.__dict__.update(environ['repoze.bfg.matchdict'])

    def is_root(self):
        return self['article'] == 'root'


I print environ to see, there is no 'repoze.bfg.matchdict' environ, only
bfg.routes.matchdict
and self['article'] seems should be self.article
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to