'Configures the upload table'

def __define_table(self):

    T = current.T
    request = current.request
    self.upload_tablename = self.UPLOAD_TABLE_NAME
    import_upload_status = {1: T('Pending'), 2: T('In    error'), 3: T('Completed')}
    now = request.utcnow
    table = self.define_upload_table()
    table.file.upload_folder = os.path.join(request.folder, 'uploads')
    messages = self.messages
    table.file.comment = DIV(_class='tooltip', _title=('%s|%s' % (messages.import_file, messages.import_file_comment)))
    table.file.label = messages.import_file
    table.status.requires = IS_IN_SET(import_upload_status, zero=None)
    table.status.represent = (lambda opt: import_upload_status.get(opt, current.messages.UNKNOWN_OPT))
    table.user_id.label = messages.user_name
    table.user_id.represent = s3_auth_user_represent_name
    table.created_on.default = now
    table.created_on.represent = self.date_represent
    table.modified_on.default = now
    table.modified_on.update = now
    table.modified_on.represent = self.date_represent
    table.replace_option.label = T('Replace')
    self.upload_table = current.db[self.UPLOAD_TABLE_NAME]
