def s3_comments_represent(text, show_link=True):
 text = s3_unicode(text)
 if (len(text) < 80):
  return text
 elif (not show_link):
  return ('%s...' % text[:76])
 else:
  import uuid
  unique = uuid.uuid4()
  represent = DIV(DIV(text, _id=unique, _class='hide showall', _onmouseout=("$('#%s').hide()" % unique)), A(('%s...' % text[:76]), _onmouseover=("$('#%s').removeClass('hide').show()" % unique)))
  return represent

def s3_comments_represent ( text , show_link = True ) : text = s3_unicode ( text ) if ( len ( text ) < 80 ) : return text elif ( not show_link ) : return ( '%s...' % text [ : 76 ] ) else : import uuid unique = uuid . uuid4 ( ) represent = DIV ( DIV ( text , _id = unique , _class = 'hide showall' , _onmouseout = ( "$('#%s').hide()" % unique ) ) , A ( ( '%s...' % text [ : 76 ] ) , _onmouseover = ( "$('#%s').removeClass('hide').show()" % unique ) ) ) return represent
represent comments fields .