What's your use case? Are "nest, pest and rest" always "nest, pest and rest" -- or could they be "rest, pest and nest", or "nest, best, and rest"?
If they're set in stone; that is, it's always nest, followed by pest, followed by rest, then it's easy enough to just parameterize the url: '/nest/(\d+)/pest/(\d+)/rest/(\d+)/' and have your view delegate like so: #using session def myview(request, x, y, z): nest(x) pest(y) rest(z) #using return values def myview(request, x, y, z): nest(x, pest(y, rest(z))) Even if the functions are variable, it should be easy to enough to extend this approach accordingly. On Oct 20, 6:51 pm, Phlip <phlip2...@gmail.com> wrote: > Djangoistas: > > We want to call this URL: > > http://www.server.com/nest/5/pest/6/rest/7 > > We want each handler to call, with its argument, in order: > > def nest(request, x): > ... > def pest(request, y): > ... > def rest(request, z): > ... > > (Internally, at rest() time, we want x and y to be available on some > session or file-scope variable.) > > How to write an url() call in urls.py that handles part of a path, and > then dispatches to the next part of the path, if any? > > -- > Phlip > http://bit.ly/ZeekLand -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.