The patch, that adding some new functionality to template_utils.markup module:
* new class 'Filter', that has a verbose_name for human reading and
redefines self __call__ method. So, we can use it as a standard format
function, like markup()
* new property 'choices' for MarkupFormatter, that returns an tuple of
available choces in form of ('filter_name', 'verbose_filter_name'). We can
use it in our models as a helper.
* new property 'default', that returns a default markup choice. Another
model helper.
Original issue reported on code.google.com by bodyan...@gmail.com on 12 May 2007 at 1:30
Original issue reported on code.google.com by
bodyan...@gmail.com
on 12 May 2007 at 1:30Attachments: