3 ms·
"This probably means that 'controllers' need to go away in favor of 'resources', and routes can be vastly simplified, if not completely derived/inferred by the
by tbatterii 15y ago
"This probably means that 'controllers' need to go away in favor of 'resources', and routes can be vastly simplified, if not completely derived/inferred by the framework."
http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/traversal.html http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch...
- rbanffy 15y agoAlso, Zope maps URLs to method invocations on objects or their containers - http://server/ob1/ob2/m1 http://server/ob1/ob2/m1 is served by storage['ob1']['ob2'].m1() (there are ways to mess with that, of course)
- tbatterii 15y agoyeah, traversal is one of the nice things pyramid took from zope. Very powerful if your data model fits in a nice hierarchy.