Menu

Trac Commit Log


Commit Date  
[r5155] by cboos

VcRefactoring/Controller quick fix: posargc adjusted to skip 'self'

2007-03-30 14:32:00 Tree
[r5154] by cboos

VcRefactoring/Controller: improve the `RequestProcessor` dispatching logic.

The requests parameters are now automatically associated to arguments of the action methods (`do_<action>` for POSTs, `render_<action>` for GETs and `xhr_<action>` for XMLHttpRequest handler methods).

The complete rules are the following:
0. `req.path_info` is matched using `RequestProcessor.url_pattern` regular expression
1. the handler method's positional arguments are set to either:
1. the value of the similarly named request parameter,
2. the value of the corresponding positional groups from the match
3. to `None`
2. the handler method's keyword arguments are set:
1. the value of the similarly named request parameter,
2. the value of the corresponding named groups from the match
3. to the default value specified in the method signature

This is quite similar to cmlenz's original approach in source:sandbox/controller/trac/web/controller.py, though not exactly the same (there, only keyword arguments could be overriden by request parameters).

2007-03-30 13:56:37 Tree
[r5153] by cboos

VcRefactoring/Controller: clean-up of the Browser module

The remaining _render... methods in !BrowserModule have been moved to the !BrowserRequest class.

2007-03-30 08:01:31 Tree
[r5152] by cboos

0.10.4dev: ported r5151 (''Repository.sync API fix #5014'')

2007-03-30 07:54:33 Tree
[r5151] by cboos

Minor tweaks to the Repository.sync and sync_changeset API. Fixes #5014.

2007-03-29 13:16:00 Tree
[r5150] by cboos

Minor cosmetic fixes for r5149. Closes #5049.

2007-03-29 07:50:18 Tree
[r5149] by cboos

Add a ''limit'' parameter to TicketQuery (applying karmadude's patch from #5049)

2007-03-29 07:40:13 Tree
[r5148] by mgood

replace uses of `heapq` with more efficient operations

2007-03-27 20:23:38 Tree
[r5147] by cboos

In pytz 2007, pytz.timezone can't deal with unicode input, so we normalize it to ascii. Closes #5021.

2007-03-27 09:15:46 Tree
[r5146] by cboos

VcRefactoring/Controller: Merged revisions [5076:5145/trunk] via svnmerge

2007-03-27 08:43:03 Tree
Older >