Menu

Trac Commit Log


Commit Date  
[r3609] by cboos

Some unicode fixes for util.html:
`Markup.escape`:: make the unicode conversion done by Markup on its content more robust (i.e. use `to_unicode`).
This will in particular help for old plugins that wrap UTF-8 strings in Element or Markup objects (or simply `escape` them). Fixes #3543.
`Fragment.__str__`:: the conversion to a string of a Fragment `f` now returns either a plain `unicode` object (for `unicode(f)`) or a `str` object (for `str(f)`), instead of a Markup object in both cases. This avoids problem of double protection against HTML escaping, as seen in #2580.
That is, when doing `req.hdf[data] = unicode(x)`, we should always be able to assume that this hdf 'data' will be properly HTML escaped.
In addition, this is consistent with what's done in [markup:source:/trunk/markup/builder.py@...#L40 Markup].

2006-08-10 20:53:23 Tree
[r3608] by mooch

Tagged 0.9.6-2 debian release

2006-08-10 18:45:27 Tree
[r3607] by mooch

Updated Standards version in Debian package

2006-08-10 18:41:54 Tree
[r3606] by mooch

Updated the Debian package to the latest Python Policy

2006-08-10 11:13:28 Tree
[r3605] by cboos

!TicketQuery macro refactored to use `trac.util.html` for producing its output. This also introduces a new count format which simply reports the count of the tickets matching the query.

2006-08-09 07:18:10 Tree
[r3604] by cboos

Add anchors to the entries listed by the !MacroList macro.

2006-08-09 06:29:57 Tree
[r3603] by cmlenz

Markup branch: Migrated roadmap template to Markup.

2006-08-08 10:45:55 Tree
[r3602] by cmlenz

Rename `trac.util.markup` to `trac.util.html` to enable future migration to [http://markup.edgewall.org/ Markup].

2006-08-08 09:33:10 Tree
[r3601] by cmlenz

Markup branch: Merged [3589:3600/trunk].

2006-08-07 20:44:43 Tree
[r3600] by cmlenz

Markup branch: Migrate ticket template to Markup (not complete yet, though: missing threading stuff).

2006-08-07 20:40:34 Tree
Older >
MongoDB Logo MongoDB