| Commit | Date | |
|---|---|---|
|
[r6064]
by
cboos
context refactoring: introduce `get_summary` instead of the `Resource.summary` method. |
2007-10-18 10:37:32 | Tree |
| 2007-10-18 10:31:37 | Tree | |
|
[r6062]
by
cboos
context refactoring: typo in the interface declaration for the !ResourceSystem. Good catch from coderanger! |
2007-10-18 10:23:52 | Tree |
|
[r6061]
by
cboos
context refactoring: some small fixes |
2007-10-17 17:10:45 | Tree |
| 2007-10-16 09:59:22 | Tree | |
|
[r6059]
by
cboos
0.10.5dev: fix TracAdmin ''wiki dump'' and ''wiki load'' commands, so that they can handle non-ascii Wiki page names. Closes #6180. Thanks to ''condo'' for the report and the initial patches. |
2007-10-16 09:44:04 | Tree |
| 2007-10-16 09:40:21 | Tree | |
|
[r6057]
by
cboos
context refactoring: split the Resource URL generation in two: Removed `url` method from the Resource class. |
2007-10-16 07:45:40 | Tree |
| 2007-10-16 07:32:04 | Tree | |
|
[r6055]
by
cboos
TracDev/ContextRefactoring: initial approach to the refactoring The main idea here is to remove from the `Context` class all the aspects related to resource identification and description, and to keep only what is needed for doing the rendering. In effect, the main focus of that `Context` class is now to be exclusively a "rendering context", which aims at providing all the necessary information for the rendering layer, ultimately allowing us to get rid on the dependency on the `req` in this part of the code. The resource identification part is now the responsibility of a new `Resource` class, which is quite simple (no subclassing) and mainly offers a convenient access to the `.realm`, `.id` and `.version` information. A `Resource` also provides a convenient way to call the `IResourceManager` methods of the component in charge of the realm of that resource. Those `IResourceManager` methods are: Finally, a `Resource` offers some facilities for creating other related resources, mostly useful for creating a resource for another version than the current one or for creating `child` resources. The fine grained permissions are now operating exclusively on the `Resource` objects, not on `Context` objects anymore. The current changeset is pretty large, but most of the changes are happening in a few places, like the trac/context.py file which is nearly entirely rewritten and in 3 modules: the attachment, the wiki/web_ui.py and the ticket/web_ui.py. The state of this branch is quite stable, all the unit tests are passing and the features are mostly all working, with the exception of Ticket diff views. So I think this is a good basis for further experiments. |
2007-10-15 15:19:48 | Tree |