def auto_fields(resource):
 resource_def = config.DOMAIN[resource]
 fields = [resource_def['id_field'], config.LAST_UPDATED, config.DATE_CREATED, config.ETAG]
 fields += [config.ISSUES, config.STATUS, config.LINKS]
 if (resource_def['versioning'] is True):
  fields.append(config.VERSION)
  fields.append(config.LATEST_VERSION)
  fields.append((resource_def['id_field'] + config.VERSION_ID_SUFFIX))
 if (resource_def['soft_delete'] is True):
  fields.append(config.DELETED)
 return fields

def auto_fields ( resource ) : resource_def = config . DOMAIN [ resource ] fields = [ resource_def [ 'id_field' ] , config . LAST_UPDATED , config . DATE_CREATED , config . ETAG ] fields += [ config . ISSUES , config . STATUS , config . LINKS ] if ( resource_def [ 'versioning' ] is True ) : fields . append ( config . VERSION ) fields . append ( config . LATEST_VERSION ) fields . append ( ( resource_def [ 'id_field' ] + config . VERSION_ID_SUFFIX ) ) if ( resource_def [ 'soft_delete' ] is True ) : fields . append ( config . DELETED ) return fields
returns a list of automatically handled fields for a resource .