All pastes #283772 Raw Edit

Stuff

public text v1 · immutable
#283772 ·published 2006-12-18 16:33 UTC
rendered paste body
con = context.portal_catalog.searchResults(getId=context.getId())[:1]

for i in con:
   assuntos = i.getTituloAssunto

if assuntos == '':
   return assuntos

assuntos = assuntos.split(":")

for ass in assuntos:
   if not ass == '': 
      print '<a style="font-size: 100%; font-color: #6C7962; !important" href="' + context.agencia.portal_url() + '/assunto_view?titulo=' + ass + '">' + ass + "</a> "


return printed