Scripts posted recently tagged to tag in Kelpi

1- 2 of 2.

Custom template tag to print a link instead of a date string

to template tag templatetag django python by nando.quintana

from django import template
register = template.Library()
@register.tag(name="link_to_date")
def do_link_to_date(parser, token):
    try:

Different ways of retrieving a tag cloud

to sql tag cloud by nando.quintana

-- http://poeticcode.wordpress.com/2007/01/27/tag-cloud-algorithmlogicformula/

select entity,metric from fact order by metric desc;
select entity,metric from fact ordre by metric desc limit 0,<n>;
select * from (select entity,metric from fact order by metric desc limit 0,<n>) order by entity;
hits counter