Skip to content

Commit

Permalink
Bump to version 1.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dlitvakb committed Jun 15, 2021
1 parent fafee45 commit a2f200c
Show file tree
Hide file tree
Showing 28 changed files with 67 additions and 57 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# CHANGELOG

## Unreleased

## v1.13.1
* Fixed a bug to retrieve an entry when raw_mode is enabled.

## v1.13.0
Expand Down
2 changes: 1 addition & 1 deletion contentful/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
from .content_type_field import ContentTypeField # noqa: F401


__version__ = "1.13.0"
__version__ = "1.13.1"
__author__ = "Contentful GmbH"
__email__ = "bhushan.lodha@external.contentful.com"
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 318fd6b5ef852372c31e8cde7e8935f9
config: e7a48687961991cbff5a961514d41a04
tags: 645f666f9bcd5a90fca523b33c5a78b7
4 changes: 2 additions & 2 deletions docs/_modules/contentful/array.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.array &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.array &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
8 changes: 5 additions & 3 deletions docs/_modules/contentful/asset.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.asset &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.asset &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down Expand Up @@ -84,7 +84,7 @@ <h1>Source code for contentful.asset</h1><div class="highlight"><pre>

<span class="k">return</span> <span class="n">url</span></div>

<div class="viewcode-block" id="Asset.incoming_references"><a class="viewcode-back" href="../../contentful.html#contentful.asset.Asset.incoming_references">[docs]</a> <span class="k">def</span> <span class="nf">incoming_references</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">query</span><span class="o">=</span><span class="p">{}):</span>
<div class="viewcode-block" id="Asset.incoming_references"><a class="viewcode-back" href="../../contentful.html#contentful.asset.Asset.incoming_references">[docs]</a> <span class="k">def</span> <span class="nf">incoming_references</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">query</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;Fetches all entries referencing the asset</span>

<span class="sd"> API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/links-to-asset</span>
Expand All @@ -97,6 +97,8 @@ <h1>Source code for contentful.asset</h1><div class="highlight"><pre>
<span class="sd"> &gt;&gt;&gt; entries = asset.incoming_references(client)</span>
<span class="sd"> [&lt;Entry[cat] id=&#39;happycat&#39;&gt;]</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">query</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">query</span> <span class="o">=</span> <span class="p">{}</span>

<span class="k">if</span> <span class="n">client</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
Expand Down
12 changes: 8 additions & 4 deletions docs/_modules/contentful/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.client &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.client &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down Expand Up @@ -262,10 +262,14 @@ <h1>Source code for contentful.client</h1><div class="highlight"><pre>

<span class="k">try</span><span class="p">:</span>
<span class="n">query</span><span class="o">.</span><span class="n">update</span><span class="p">({</span><span class="s1">&#39;sys.id&#39;</span><span class="p">:</span> <span class="n">entry_id</span><span class="p">})</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get</span><span class="p">(</span>
<span class="n">response</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get</span><span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">environment_url</span><span class="p">(</span><span class="s1">&#39;/entries&#39;</span><span class="p">),</span>
<span class="n">query</span>
<span class="p">)[</span><span class="mi">0</span><span class="p">]</span>
<span class="p">)</span>

<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">raw_mode</span><span class="p">:</span>
<span class="k">return</span> <span class="n">response</span>
<span class="k">return</span> <span class="n">response</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
<span class="k">except</span> <span class="ne">IndexError</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">EntryNotFoundError</span><span class="p">(</span>
<span class="s2">&quot;Entry not found for ID: &#39;</span><span class="si">{0}</span><span class="s2">&#39;&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">entry_id</span><span class="p">)</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/content_type.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.content_type &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.content_type &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/content_type_cache.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.content_type_cache &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.content_type_cache &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/content_type_field.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.content_type_field &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.content_type_field &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/content_type_field_types.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.content_type_field_types &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.content_type_field_types &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/deleted_asset.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.deleted_asset &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.deleted_asset &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/deleted_entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.deleted_entry &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.deleted_entry &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
8 changes: 5 additions & 3 deletions docs/_modules/contentful/entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.entry &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.entry &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down Expand Up @@ -160,7 +160,7 @@ <h1>Source code for contentful.entry</h1><div class="highlight"><pre>
<span class="n">max_depth</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">_max_depth</span>
<span class="p">)</span><span class="o">.</span><span class="n">build</span><span class="p">()</span>

<div class="viewcode-block" id="Entry.incoming_references"><a class="viewcode-back" href="../../contentful.html#contentful.entry.Entry.incoming_references">[docs]</a> <span class="k">def</span> <span class="nf">incoming_references</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">query</span><span class="o">=</span><span class="p">{}):</span>
<div class="viewcode-block" id="Entry.incoming_references"><a class="viewcode-back" href="../../contentful.html#contentful.entry.Entry.incoming_references">[docs]</a> <span class="k">def</span> <span class="nf">incoming_references</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">client</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">query</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;Fetches all entries referencing the entry</span>

<span class="sd"> API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/links-to-asset</span>
Expand All @@ -174,6 +174,8 @@ <h1>Source code for contentful.entry</h1><div class="highlight"><pre>
<span class="sd"> &gt;&gt;&gt; entries = entry.incoming_references(client)</span>
<span class="sd"> [&lt;Entry[cat] id=&#39;happycat&#39;&gt;]</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">query</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">query</span> <span class="o">=</span> <span class="p">{}</span>

<span class="k">if</span> <span class="n">client</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.errors &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.errors &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/locale.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.locale &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.locale &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
6 changes: 3 additions & 3 deletions docs/_modules/contentful/resource.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.resource &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.resource &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down Expand Up @@ -213,7 +213,7 @@ <h1>Source code for contentful.resource</h1><div class="highlight"><pre>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">locale</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">sys</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;locale&#39;</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">sys</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;locale&#39;</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">_locale</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">locale</span> <span class="ow">or</span> <span class="bp">self</span><span class="o">.</span><span class="n">default_locale</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/resource_builder.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.resource_builder &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.resource_builder &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/space.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.space &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.space &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/_modules/contentful/sync_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contentful.sync_page &#8212; Contentful 1.13.0 documentation</title>
<title>contentful.sync_page &#8212; Contentful 1.13.1 documentation</title>
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '1.13.0',
VERSION: '1.13.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
Expand Down

0 comments on commit a2f200c

Please sign in to comment.