def s3_comments(name='comments', **attr):
 from s3widgets import s3_comments_widget
 T = current.T
 if ('label' not in attr):
  attr['label'] = T('Comments')
 if ('represent' not in attr):
  attr['represent'] = (lambda comments: (XML(comments) if comments else current.messages['NONE']))
 if ('widget' not in attr):
  attr['widget'] = s3_comments_widget
 if ('comment' not in attr):
  attr['comment'] = DIV(_class='tooltip', _title=('%s|%s' % (T('Comments'), T('Please use this field to record any additional information, including a history of the record if it is updated.'))))
 f = S3ReusableField(name, 'text', **attr)
 return f()

def s3_comments ( name = 'comments' , ** attr ) : from s3widgets import s3_comments_widget T = current . T if ( 'label' not in attr ) : attr [ 'label' ] = T ( 'Comments' ) if ( 'represent' not in attr ) : attr [ 'represent' ] = ( lambda comments : ( XML ( comments ) if comments else current . messages [ 'NONE' ] ) ) if ( 'widget' not in attr ) : attr [ 'widget' ] = s3_comments_widget if ( 'comment' not in attr ) : attr [ 'comment' ] = DIV ( _class = 'tooltip' , _title = ( '%s|%s' % ( T ( 'Comments' ) , T ( 'Please use this field to record any additional information, including a history of the record if it is updated.' ) ) ) ) f = S3ReusableField ( name , 'text' , ** attr ) return f ( )
return a standard comments field .