Thanks! I'll make a push of the docs today. On 7/20/09 9:37 AM, Tres Seaver wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > leopay wrote: >> 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 > > Good catch! I have fixed that in SVN, and will let Chris update the > docs site. > > > Tres. > - -- > =================================================================== > Tres Seaver +1 540-429-0999 tsea...@palladion.com > Palladion Software "Excellence by Design" http://palladion.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFKZHMv+gerLs4ltQ4RAtDnAKDMG5S2wT5g61jeO1FpF0dxOHXWaACgyI1O > elztyDy6z0Z9sXl6PONvHdM= > =vBMy > -----END PGP SIGNATURE----- > _______________________________________________ > Repoze-dev mailing list > Repoze-dev@lists.repoze.org > http://lists.repoze.org/listinfo/repoze-dev >
_______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev