Contentstack 1.8.1__tar.gz → 1.8.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/PKG-INFO +1 -1
- {Contentstack-1.8.1 → Contentstack-1.8.2}/PKG-INFO +1 -1
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/__init__.py +1 -1
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/entry.py +1 -3
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/query.py +1 -3
- {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/SOURCES.txt +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/dependency_links.txt +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/not-zip-safe +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/requires.txt +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/top_level.txt +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/LICENSE +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/README.md +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/asset.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/assetquery.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/basequery.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/contenttype.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/controller.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/deep_merge_lp.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/entryqueryable.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/https_connection.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/image_transform.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/stack.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/utility.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/setup.cfg +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/setup.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/tests/test_assets.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/tests/test_entry.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/tests/test_live_preview.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/tests/test_query.py +0 -0
- {Contentstack-1.8.1 → Contentstack-1.8.2}/tests/test_stack.py +0 -0
|
@@ -22,7 +22,7 @@ __all__ = (
|
|
|
22
22
|
__title__ = 'contentstack-delivery-python'
|
|
23
23
|
__author__ = 'contentstack'
|
|
24
24
|
__status__ = 'debug'
|
|
25
|
-
__version__ = 'v1.8.
|
|
25
|
+
__version__ = 'v1.8.2'
|
|
26
26
|
__endpoint__ = 'cdn.contentstack.io'
|
|
27
27
|
__email__ = 'mobile@contentstack.com'
|
|
28
28
|
__developer_email__ = 'shailesh.mishra@contentstack.com'
|
|
@@ -6,8 +6,6 @@ API Reference: https://www.contentstack.com/docs/developers/apis/content-deliver
|
|
|
6
6
|
import logging
|
|
7
7
|
from urllib import parse
|
|
8
8
|
|
|
9
|
-
import empty
|
|
10
|
-
|
|
11
9
|
from contentstack.deep_merge_lp import DeepMergeMixin
|
|
12
10
|
from contentstack.entryqueryable import EntryQueryable
|
|
13
11
|
|
|
@@ -157,7 +155,7 @@ class Entry(EntryQueryable):
|
|
|
157
155
|
return self
|
|
158
156
|
|
|
159
157
|
def __get_base_url(self, endpoint=''):
|
|
160
|
-
if endpoint is not None and
|
|
158
|
+
if endpoint is not None and endpoint.strip(): # .strip() removes leading/trailing whitespace
|
|
161
159
|
self.http_instance.endpoint = endpoint
|
|
162
160
|
if None in (self.http_instance, self.content_type_id, self.entry_uid):
|
|
163
161
|
raise KeyError(
|
|
@@ -8,8 +8,6 @@ import logging
|
|
|
8
8
|
import warnings
|
|
9
9
|
from urllib import parse
|
|
10
10
|
|
|
11
|
-
import empty
|
|
12
|
-
|
|
13
11
|
from contentstack.basequery import BaseQuery
|
|
14
12
|
from contentstack.deep_merge_lp import DeepMergeMixin
|
|
15
13
|
from contentstack.entryqueryable import EntryQueryable
|
|
@@ -54,7 +52,7 @@ class Query(BaseQuery, EntryQueryable):
|
|
|
54
52
|
self.base_url = self.__get_base_url()
|
|
55
53
|
|
|
56
54
|
def __get_base_url(self, endpoint=''):
|
|
57
|
-
if endpoint is not None and
|
|
55
|
+
if endpoint is not None and endpoint.strip(): # .strip() removes leading/trailing whitespace
|
|
58
56
|
self.http_instance.endpoint = endpoint
|
|
59
57
|
if None in (self.http_instance, self.content_type_uid):
|
|
60
58
|
raise KeyError(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|