def versioned_fields(resource_def):
 if (resource_def['versioning'] is not True):
  return []
 schema = resource_def['schema']
 fields = [f for f in schema if ((schema[f].get('versioned', True) is True) and (f != resource_def['id_field']))]
 fields.extend((app.config['LAST_UPDATED'], app.config['ETAG'], app.config['DELETED']))
 return fields

def versioned_fields ( resource_def ) : if ( resource_def [ 'versioning' ] is not True ) : return [ ] schema = resource_def [ 'schema' ] fields = [ f for f in schema if ( ( schema [ f ] . get ( 'versioned' , True ) is True ) and ( f != resource_def [ 'id_field' ] ) ) ] fields . extend ( ( app . config [ 'LAST_UPDATED' ] , app . config [ 'ETAG' ] , app . config [ 'DELETED' ] ) ) return fields
returns a list of versioned fields for a resource .