On Mon, Mar 5, 2012 at 9:27 PM, Jasper van den Bosch <[email protected]> wrote: > I have a question for the traversal users: > > do you > > a) load your model from data (i.e. sqla) and add the resource properties > (request, __parent__) in the parent?
There's no reason your models can't just implement __parent__ and __name__ as properties themselves. These have nothing to do with HTTP. (No need to know about the request for traversal!) An example using SQLAlchemy: https://github.com/Pylons/Kotti/blob/master/kotti/resources.py#L108 -- http://danielnouri.org -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
