How to use pyramid_traversalwrapper

14 views
Skip to first unread message

pyramidnewbie

unread,
May 21, 2012, 11:11:24 AM5/21/12
to pylons-...@googlegroups.com
Hi,
   I'm new to pyramid traversal and having a hard time understanding how to use the pyramid_traversalwrapper. I added these two lines in my initialization code:

    config = Configurator(root_factory=Root)
    config.registry.registerAdapter(ModelGraphTraverser, (Interface,),
                                ITraverser)

and it seems that the traversals are being done using the ModelGraphTraverser, however, what do I need to do with the rest of my model to be able to use the resource-aware functions like resource_path and find_root and such. Confused. 

Erin
Reply all
Reply to author
Forward
0 new messages