Menu

Trac Commit Log


Commit Date  
[r6113] by cboos

Timestamp sample macro: `strftime` returns UTF-8 string, need to use `to_unicode` here. Fixes #5778.

This also updates the sample plugin to use datetime, like the rest of Trac 0.11 is doing.

Finally, I've noticed that the win32 specific code in format_datetime is only really necessary for Python 2.3 (related to #2971).

2007-10-29 15:53:53 Tree
[r6112] by cboos

!OneLinerFormatter: when truncating last linesep, should take into account real length of linesep. Fix #6253,

2007-10-29 13:41:13 Tree
[r6111] by cboos

Complementary test for r6110 / #6260.

After the fact, the test in r6110 looked suspicious...

2007-10-29 13:19:42 Tree
[r6110] by cboos

Targets in InterTrac links did not support unicode characters. Fix #6260.

2007-10-29 11:49:00 Tree
[r6109] by cboos

Refactor ![[InterTrac]] macro to use genshi builder tags directly.

2007-10-29 11:48:38 Tree
[r6108] by cboos

Follow-up to r6107, which mistakingly contained also the changes corresponding to the experimental `get_user_groups` API. Reverting those changes.

Thanks to osimons for noticing this!

2007-10-29 11:34:32 Tree
[r6107] by cboos

context-refactoring: rework r6104 based on feedback from nkantrowitz

The idea here is that IPermissionPolicy plugin writers shouldn't bother with taking the username and resource information from the perm cache. Rather, it's simpler for them to be presented with the `username`, `resource` and `perm` parameters directly. We also make the guarantee that `perm` matches the given `username` and `resource`.

2007-10-26 18:40:36 Tree
[r6106] by cboos

context-refactoring: don't use `__slots__`

I couldn't get any noticeable performance difference anyway, and ...
[http://groups.google.com/group/comp.lang.python/browse_thread/thread/4d0aa0ce90ee9eab/ __slots__ are evil]...

2007-10-26 16:30:55 Tree
[r6105] by cboos

TracMercurial plugin for 0.11: compatibility fix with the context-refactoring branch (will still work with current trunk)

2007-10-26 16:25:22 Tree
[r6104] by cboos

context-refactoring: modified the IPermissionPolicy interface so that plugins can easily check for extra permissions the standard way.

The `check_permission` method has changed from:
{{{
check_permission(username, action, resource)
}}}
to:
{{{
check_permission(action, perm)
}}}
with `perm` being the usual `PermissionCache` on which permissions checks can be made (`'...' in perm`).

As noted in the vulnerability_tickets.py plugin, some care should be taken to avoid recursion, though.

2007-10-26 16:11:24 Tree
Older >