Thread Hijack? On Apr 26, 1:07 pm, [EMAIL PROTECTED] wrote: > I'm trying to figure out how to do something, and googling hasn't turned > up any examples. Before I start experimenting, I thought I'd ask for > a reality check :) > > I want to have URLs like this: > > /stream/<sid>/subobject/<oid> > > Here, a collection of 'subobjects' belongs to the 'stream' with id 'sid'. > So I want to return a page displaying subobject oid. But oid is a unique > identifier only in the _context_ of stream 'sid'. > > How do I do this in Turbogears? At first glance it seems like I need to > parse all the arguments in my 'stream' controller index method (or the > default method). There are a bunch of these URLs, though, and I don't > want that method to be a mad agglomeration of branching code. Ideally I'd > like to have subcontrollers for 'subobject' urls, and 'subobject2' urls, > and be able to use all the turbogears magic goodness in writing them. > > From a code point of view, what I think I really want here is for the > above URL to call a subcontroller 'subobject', and pass subobject the > arguments 'sid' and 'oid'. > > I think I can figure out how to do this, with some experimentation, but > if anyone has done it and/or knows of some example code I can look at, > that would be lovely. > > --David
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

