Пример #1
0
 def desc(desc):
     if c.visual.stylify_metatags:
         return h.urlify_text(h.desc_stylize(h.truncate(desc, 60)))
     else:
         return h.urlify_text(h.truncate(desc, 60))
Пример #2
0
 def desc(desc):
     from pylons import tmpl_context as c
     if c.visual.stylify_metatags:
         return h.urlify_text(h.desc_stylize(h.truncate(desc, 60)))
     else:
         return h.urlify_text(h.truncate(desc, 60))
Пример #3
0
 def desc(desc):
     if c.visual.stylify_metatags:
         return h.urlify_text(h.desc_stylize(h.truncate(desc, 60)))
     else:
         return h.urlify_text(h.truncate(desc, 60))
Пример #4
0
 def desc(desc):
     from pylons import tmpl_context as c
     if c.visual.stylify_metatags:
         return h.urlify_text(h.desc_stylize(h.truncate(desc, 60)))
     else:
         return h.urlify_text(h.truncate(desc, 60))