def s3_authorstamp():
 auth = current.auth
 utable = auth.settings.table_user
 if auth.is_logged_in():
  current_user = current.session.auth.user.id
 else:
  current_user = None
 if (current.deployment_settings.get_ui_auth_user_represent() == 'name'):
  represent = s3_auth_user_represent_name
 else:
  represent = s3_auth_user_represent
 s3_meta_created_by = S3ReusableField('created_by', utable, readable=False, writable=False, requires=None, default=current_user, represent=represent, ondelete='RESTRICT')
 s3_meta_modified_by = S3ReusableField('modified_by', utable, readable=False, writable=False, requires=None, default=current_user, update=current_user, represent=represent, ondelete='RESTRICT')
 return (s3_meta_created_by(), s3_meta_modified_by())

def s3_authorstamp ( ) : auth = current . auth utable = auth . settings . table_user if auth . is_logged_in ( ) : current_user = current . session . auth . user . id else : current_user = None if ( current . deployment_settings . get_ui_auth_user_represent ( ) == 'name' ) : represent = s3_auth_user_represent_name else : represent = s3_auth_user_represent s3_meta_created_by = S3ReusableField ( 'created_by' , utable , readable = False , writable = False , requires = None , default = current_user , represent = represent , ondelete = 'RESTRICT' ) s3_meta_modified_by = S3ReusableField ( 'modified_by' , utable , readable = False , writable = False , requires = None , default = current_user , update = current_user , represent = represent , ondelete = 'RESTRICT' ) return ( s3_meta_created_by ( ) , s3_meta_modified_by ( ) )
record ownership meta-fields .