On Mar 21, 2006, at 6:18 AM, Christian Boos wrote:
A completely similar approach could be taken for the `repos`, i.e. create it and attach it to the `req` upon the first call. This would for example enable to solve the recent problem #2891 (Timeline slowness due to the use of get_repository) in a better way.
In summary, the problems mentioned at the beginning could be addressed like this: 1. use a `req.db` property to get access to the db layer for the client operations (maybe even use `req.cursor` as a shortcut) 2. use a `req.repos` property to get access to the vc layer for the client operations 3. and 4. in general use `req` more consistently to represent the current client operation
-- Christian
With this layering would it be easier to consider multiple repos in a single trac project? If so this might be useful in the mercurial vc branch.
Robert Butterfield |
_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev