Skip to content

Commit 2fff819

Browse files
committed
Bump to version 1.9.0
1 parent d50832d commit 2fff819

30 files changed

+181
-106
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# CHANGELOG
22

33
## Unreleased
4+
5+
## v1.9.0
46
### Added
57
* Added support to reuse entries. This is a performance improvement, which is disabled by default due to backwards compatibility. All users are highly encouraged to enable it and test it in their applications. Inspired by @rezonant in [contentful/contentful.rb#164]((https://github.com/contentful/contentful.rb/pull/164).
68

contentful/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
from .content_type_field import ContentTypeField # noqa: F401
1212

1313

14-
__version__ = "1.8.0"
14+
__version__ = "1.9.0"
1515
__author__ = "Contentful GmbH (David Litvak Bruno)"
1616
__email__ = "david.litvak@contentful.com"

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: ecb059e08c7ec219358e6101de8d0ad0
3+
config: 6d02a7db5c0bbe804f58be35e991c57f
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_modules/contentful/array.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<html xmlns="http://www.w3.org/1999/xhtml">
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8-
<title>contentful.array &#8212; Contentful 1.8.0 documentation</title>
8+
<title>contentful.array &#8212; Contentful 1.9.0 documentation</title>
99
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
1010
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1111
<script type="text/javascript">
1212
var DOCUMENTATION_OPTIONS = {
1313
URL_ROOT: '../../',
14-
VERSION: '1.8.0',
14+
VERSION: '1.9.0',
1515
COLLAPSE_INDEX: false,
1616
FILE_SUFFIX: '.html',
1717
HAS_SOURCE: true,

docs/_modules/contentful/asset.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<html xmlns="http://www.w3.org/1999/xhtml">
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8-
<title>contentful.asset &#8212; Contentful 1.8.0 documentation</title>
8+
<title>contentful.asset &#8212; Contentful 1.9.0 documentation</title>
99
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
1010
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1111
<script type="text/javascript">
1212
var DOCUMENTATION_OPTIONS = {
1313
URL_ROOT: '../../',
14-
VERSION: '1.8.0',
14+
VERSION: '1.9.0',
1515
COLLAPSE_INDEX: false,
1616
FILE_SUFFIX: '.html',
1717
HAS_SOURCE: true,

docs/_modules/contentful/client.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<html xmlns="http://www.w3.org/1999/xhtml">
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8-
<title>contentful.client &#8212; Contentful 1.8.0 documentation</title>
8+
<title>contentful.client &#8212; Contentful 1.9.0 documentation</title>
99
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
1010
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1111
<script type="text/javascript">
1212
var DOCUMENTATION_OPTIONS = {
1313
URL_ROOT: '../../',
14-
VERSION: '1.8.0',
14+
VERSION: '1.9.0',
1515
COLLAPSE_INDEX: false,
1616
FILE_SUFFIX: '.html',
1717
HAS_SOURCE: true,
@@ -42,7 +42,7 @@ <h1>Source code for contentful.client</h1><div class="highlight"><pre>
4242
<span></span><span class="kn">import</span> <span class="nn">requests</span>
4343
<span class="kn">import</span> <span class="nn">platform</span>
4444
<span class="kn">from</span> <span class="nn">re</span> <span class="k">import</span> <span class="n">sub</span>
45-
<span class="kn">from</span> <span class="nn">.utils</span> <span class="k">import</span> <span class="n">ConfigurationException</span><span class="p">,</span> <span class="n">NotSupportedException</span>
45+
<span class="kn">from</span> <span class="nn">.utils</span> <span class="k">import</span> <span class="n">ConfigurationException</span>
4646
<span class="kn">from</span> <span class="nn">.utils</span> <span class="k">import</span> <span class="n">retry_request</span><span class="p">,</span> <span class="n">string_class</span>
4747
<span class="kn">from</span> <span class="nn">.errors</span> <span class="k">import</span> <span class="n">get_error</span><span class="p">,</span> <span class="n">RateLimitExceededError</span><span class="p">,</span> <span class="n">EntryNotFoundError</span>
4848
<span class="kn">from</span> <span class="nn">.resource_builder</span> <span class="k">import</span> <span class="n">ResourceBuilder</span>
@@ -90,6 +90,9 @@ <h1>Source code for contentful.client</h1><div class="highlight"><pre>
9090
<span class="sd"> :param content_type_cache: (optional) Boolean determining wether to</span>
9191
<span class="sd"> store a Cache of the Content Types in order to properly coerce</span>
9292
<span class="sd"> Entry fields, defaults to True.</span>
93+
<span class="sd"> :param reuse_entries: (optional) Boolean determining wether to reuse</span>
94+
<span class="sd"> hydrated Entry and Asset objects within the same request when possible.</span>
95+
<span class="sd"> Defaults to False</span>
9396
<span class="sd"> :param proxy_host: (optional) URL for Proxy, defaults to None.</span>
9497
<span class="sd"> :param proxy_port: (optional) Port for Proxy, defaults to None.</span>
9598
<span class="sd"> :param proxy_username: (optional) Username for Proxy, defaults to None.</span>
@@ -130,6 +133,7 @@ <h1>Source code for contentful.client</h1><div class="highlight"><pre>
130133
<span class="n">gzip_encoded</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
131134
<span class="n">raise_errors</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
132135
<span class="n">content_type_cache</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
136+
<span class="n">reuse_entries</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span>
133137
<span class="n">proxy_host</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
134138
<span class="n">proxy_port</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
135139
<span class="n">proxy_username</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
@@ -153,6 +157,7 @@ <h1>Source code for contentful.client</h1><div class="highlight"><pre>
153157
<span class="bp">self</span><span class="o">.</span><span class="n">gzip_encoded</span> <span class="o">=</span> <span class="n">gzip_encoded</span>
154158
<span class="bp">self</span><span class="o">.</span><span class="n">raise_errors</span> <span class="o">=</span> <span class="n">raise_errors</span>
155159
<span class="bp">self</span><span class="o">.</span><span class="n">content_type_cache</span> <span class="o">=</span> <span class="n">content_type_cache</span>
160+
<span class="bp">self</span><span class="o">.</span><span class="n">reuse_entries</span> <span class="o">=</span> <span class="n">reuse_entries</span>
156161
<span class="bp">self</span><span class="o">.</span><span class="n">proxy_host</span> <span class="o">=</span> <span class="n">proxy_host</span>
157162
<span class="bp">self</span><span class="o">.</span><span class="n">proxy_port</span> <span class="o">=</span> <span class="n">proxy_port</span>
158163
<span class="bp">self</span><span class="o">.</span><span class="n">proxy_username</span> <span class="o">=</span> <span class="n">proxy_username</span>
@@ -607,7 +612,8 @@ <h1>Source code for contentful.client</h1><div class="highlight"><pre>
607612
<span class="bp">self</span><span class="o">.</span><span class="n">default_locale</span><span class="p">,</span>
608613
<span class="n">localized</span><span class="p">,</span>
609614
<span class="n">response</span><span class="o">.</span><span class="n">json</span><span class="p">(),</span>
610-
<span class="n">max_depth</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">max_include_resolution_depth</span>
615+
<span class="n">max_depth</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">max_include_resolution_depth</span><span class="p">,</span>
616+
<span class="n">reuse_entries</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">reuse_entries</span>
611617
<span class="p">)</span><span class="o">.</span><span class="n">build</span><span class="p">()</span>
612618

613619
<span class="k">def</span> <span class="nf">_has_proxy</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>

docs/_modules/contentful/content_type.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<html xmlns="http://www.w3.org/1999/xhtml">
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8-
<title>contentful.content_type &#8212; Contentful 1.8.0 documentation</title>
8+
<title>contentful.content_type &#8212; Contentful 1.9.0 documentation</title>
99
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
1010
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1111
<script type="text/javascript">
1212
var DOCUMENTATION_OPTIONS = {
1313
URL_ROOT: '../../',
14-
VERSION: '1.8.0',
14+
VERSION: '1.9.0',
1515
COLLAPSE_INDEX: false,
1616
FILE_SUFFIX: '.html',
1717
HAS_SOURCE: true,

docs/_modules/contentful/content_type_cache.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<html xmlns="http://www.w3.org/1999/xhtml">
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8-
<title>contentful.content_type_cache &#8212; Contentful 1.8.0 documentation</title>
8+
<title>contentful.content_type_cache &#8212; Contentful 1.9.0 documentation</title>
99
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
1010
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1111
<script type="text/javascript">
1212
var DOCUMENTATION_OPTIONS = {
1313
URL_ROOT: '../../',
14-
VERSION: '1.8.0',
14+
VERSION: '1.9.0',
1515
COLLAPSE_INDEX: false,
1616
FILE_SUFFIX: '.html',
1717
HAS_SOURCE: true,

docs/_modules/contentful/content_type_field.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<html xmlns="http://www.w3.org/1999/xhtml">
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8-
<title>contentful.content_type_field &#8212; Contentful 1.8.0 documentation</title>
8+
<title>contentful.content_type_field &#8212; Contentful 1.9.0 documentation</title>
99
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
1010
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1111
<script type="text/javascript">
1212
var DOCUMENTATION_OPTIONS = {
1313
URL_ROOT: '../../',
14-
VERSION: '1.8.0',
14+
VERSION: '1.9.0',
1515
COLLAPSE_INDEX: false,
1616
FILE_SUFFIX: '.html',
1717
HAS_SOURCE: true,

docs/_modules/contentful/content_type_field_types.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<html xmlns="http://www.w3.org/1999/xhtml">
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8-
<title>contentful.content_type_field_types &#8212; Contentful 1.8.0 documentation</title>
8+
<title>contentful.content_type_field_types &#8212; Contentful 1.9.0 documentation</title>
99
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
1010
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1111
<script type="text/javascript">
1212
var DOCUMENTATION_OPTIONS = {
1313
URL_ROOT: '../../',
14-
VERSION: '1.8.0',
14+
VERSION: '1.9.0',
1515
COLLAPSE_INDEX: false,
1616
FILE_SUFFIX: '.html',
1717
HAS_SOURCE: true,

0 commit comments

Comments
 (0)