Menu

Trac Commit Log


Commit Date  
[r6070] by cboos

context refactoring: fix `get-relative_url` so that it is really resource dependent (it now uses `get_url`).

Also removed left-over print statements from previous changes.

2007-10-22 08:06:32 Tree
[r6069] by cboos

context refactoring: simplify `ResourceSystem` further

The `ResourceSystem` is no longer a default `IResourceManager` for otherwise unmanaged resources.
The default implementation for `get_resource_url` and `get_resource_description` has been moved in the helper functions `get_url` and `get_description`, respectively.

Added a few API documentation and doctests.

2007-10-19 15:35:25 Tree
[r6068] by cboos

context refactoring: fix the handling of attachments, which was broken by the recent serie of changes.

2007-10-18 16:18:31 Tree
[r6067] by cboos

context-refactoring: remove the `env` from the `Resource` class.

This makes the `Resource` class really light-weight and a bit easier to create.
OTOH, there's no more the possibility to have convenience methods such as `name`, `shortname`, `url`...
Using their replacement functions `get_name`, `get_shortname`, `get_url` is therefore mandatory now, and slightly more verbose as we need to pass the env as first parameter. The corresponding helper functions in the template files of course don't need that `env` parameter.

2007-10-18 16:17:10 Tree
[r6066] by cboos

context manager: r6064 was a bit overzealous, and was fixed partially in r6065 and now completely with this change.

2007-10-18 11:30:32 Tree
[r6065] by cboos

context refactoring: now replace `Resource.name` by `get_name`.

2007-10-18 10:38:44 Tree
[r6064] by cboos

context refactoring: introduce `get_summary` instead of the `Resource.summary` method.

2007-10-18 10:37:32 Tree
[r6063] by cboos

context refactoring: following up to the style change of r6057, introduce get_shortname instead of the `Resource.shortname` method.

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
- attachments were not properly tested: attachment view and list work again
- missing import in the code for creating a ticket summary

2007-10-17 17:10:45 Tree
Older >