As BFG document stated, all the object instances of model graph in Traversal must have __name__ and __parent__ attribute, and they should be hierarchically "linked". As the traversal wiki example reveals, page objects are implementing this rule. But when I look at the source code of bfgsite, I can't see the rule is followed. The WebSite is the root object so it has __name__=__parent__=None, but none of it's sub objects (PasteBin/PasteEntry, TutorialBin/Tutorial) has code of assigning __name__ and __parent__, neither in object initializing nor object adding part, and I don't find the usage of traversalwrapper as mentioned in document, in which case we can avoid mange location aware objects "by hand". So is it a rule of "Must"?
_______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev